© 2026 Hedgehog Software, LLC
Twitter
GitHub
Discord
System
Light
Dark
More
Communities
Docs
About
Terms
Privacy
Search
Star
Feedback
Setup for Free
Shifting a List(int) to become 1,2,3,4,5... - C#
C
C#
•
4y ago
•
84 replies
Ossie
Shifting a List(int) to become 1,2,3,4,5...
Hi
, If I have a List like this
:
2,3,4,5
2,3,4,5
And I would like for it to become
:
1,2,3,4,4
1,2,3,4,4
This should be done by taking from the higher numbers in the list shifting them to the left so they come in order like above
, how would I do that
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
62,470
Members
View on Discord
Resources
ModelContextProtocol
ModelContextProtocol
MCP Server
Recent Announcements
Similar Threads
Was this page helpful?
Yes
No
Next page
Similar Threads
Return new int[2]??
C
C# / help
2y ago
rgument 2: cannot convert from 'int' to 'System.Func<int, decimal>'
C
C# / help
6mo ago
Forcing user to choose 1, 2 or 3
C
C# / help
4y ago