You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I propose to add a new Elements extension that accepts System.Range and which will allow usage of the range operator .. in C# to succinctly express slicing with start and end offsets.
We already have Slice, which is why I propose to call this extension Elements. An overload of Slice would be confusing since it takes a count as the second argument as opposed to an index.
I propose to add a new
Elements
extension that acceptsSystem.Range
and which will allow usage of the range operator..
in C# to succinctly express slicing with start and end offsets.We already have
Slice
, which is why I propose to call this extensionElements
. An overload ofSlice
would be confusing since it takes a count as the second argument as opposed to an index.Prototype
Examples
Output:
The text was updated successfully, but these errors were encountered: