Re:Perl6: Unary Sort
by maxerickson on Monday December 23, 2013 @12:36PM
(#6955400)
You can also pass in the method from the str type:
It will be faster, but it will break on elements that aren't strings (which could be good or bad).
[ Parent
| on HN ]
Re:Perl6: Unary Sort
by koenigdavidmj on Monday December 23, 2013 @03:24PM
(#6956331)
Then you can use
key=operator.methodcaller("lower")
and handle any type.