Task

Pass a function     as an argument     to another function.



Related task

   First-class functions


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