RosettaCodeData/Task/Higher-order-functions/Frink/higher-order-functions-1.frink
2023-07-01 13:44:08 -04:00

4 lines
104 B
Text

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