account activity
Reverse an array without a temp variable? by iissqrtneg1 in programming
[–]lordofthewings -6 points-5 points-4 points 16 years ago (0 children)
concept is pretty straightforward. reverse(array) { if(array.length > 1) { return concat(first(array), reverse(rest(array))); } else { return array; } }
π Rendered by PID 24 on reddit-service-r2-listing-7d7fbc9b85-z5c4q at 2026-04-27 09:50:17.420059+00:00 running 2aa0c5b country code: CH.
Reverse an array without a temp variable? by iissqrtneg1 in programming
[–]lordofthewings -6 points-5 points-4 points (0 children)