in reply to Re: Golf Challenge: all elements of an array equal
in thread Golf Challenge: all elements of an array equal
My first instinct was to go the sort route, actually. You could shrink your solution by one:
sub all_eq { #123456789_123456789_ (@_=sort@_)[0]eq pop }
His Royal Cheeziness
|
|---|