© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
C#C
C#•4y ago•
20 replies
Gladiator

❔ Can I use slice operator with loop index (remainder operator%)?

I want to slice an array from start to end index but if end index exceeds the array length, loop it and start from index 0 (remainder operator%)
C# banner
C#Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,871Members
Resources
Recent Announcements

Similar Threads

Was this page helpful?

Similar Threads

Can't use | operator in case?
C#CC# / help
2y ago
foreach loop index error
C#CC# / help
2y ago
Why can't I use the null propagation operator in lambda expressions?
C#CC# / help
2y ago