Neat-Lang / neat

The Neat Language compiler. Early beta?
BSD 3-Clause "New" or "Revised" License
110 stars 9 forks source link

Built-in method for reversing an array in stdlib #53

Closed rsaarelm closed 3 months ago

rsaarelm commented 3 months ago

Something like [1, 2, 3].reversed == [3, 2, 1]. Probably want a mutating version that operates on T mut[] and an immutable one that produces a new array.

FeepingCreature commented 3 months ago

Done: std.algorithm.reverse, std.algorithm.reversed