RosettaCodeData/Task/Higher-order-functions/Frink/higher-order-functions-1.frink
2015-11-18 06:14:39 +00:00

4 lines
104 B
Text

cmpFunc = {|a,b| length[a] <=> length[b]}
a = ["tree", "apple", "bee", "monkey", "z"]
sort[a, cmpFunc]