list1 = 1 : [] list2 = 1 : [] : [] list3 = 1 : [1] list4 = [] : [1] list5 = [1] : [1] : []
tl . (++ []) abs . fst code . code show . tl
applylist [(+ 10),(* 3)] 2will evaluate to [12,6].
f1 x alist = map (plus x) alist f2 x = map (plus x) f3 = (map . plus)
mydropwhile (~=0) [1,2,1,1,2,1,0,1,2,1,1]returns the result [0,1,2,1,1].