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


You need to login to view comments.