Schwartzian transform


/ Published in: Perl
Save to your folder(s)



Copy this code and paste it in your HTML
  1. @sorted = map { $_->[0] }
  2. sort { $a->[1] cmp $b->[1] }
  3. map { [$_, foo($_)] }
  4. @unsorted;

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.