RosettaCodeData/Task/Higher-order-functions/Clean/higher-order-functions-1.clean

3 lines
48 B
Plaintext

map f [x:xs] = [f x:map f xs]
map f [] = []