logoalt Hacker News

AndrewDavis08/01/20252 repliesview on HN

Not sure if you've deliberately put in two bugs there haha

1. shift only shifts off the first element.

2. (if classify this as a bug) using $a and $b are frowned upon because they're the default variables when using sort.


Replies

795208/01/2025

Oh wow I had forgotten about default variables. Such a lovely and inscrutable idea.

jstanley08/01/2025

Ha, (1.) was deliberate but I'd forgotten (2.)

show 1 reply