(1,'a') head [] ([2,3,4],"") tail [] ([1,2,3],"") init [] (4,'a') last [] [True,False] 10 56 55 foldl1 [] [1,2,4,7,11,16,22,29,37,46,56] [1,3,6,10,15,21,28,36,45,55] [] 55 foldr1 [] [56,55,53,50,46,41,35,28,20,11,1] [55,54,52,49,45,40,34,27,19,10] [] [1,2,3,4,1,2,3,4,1,2] (["x","x","x","x"],[],[1,2,3,4]) [] [["abc","abc"],[],["","",""]] [[6,7,8,9,10],[1,2,3,4,5,6,7,8,9,10],[]] [1,2,3,4,5,6,7,8,9,10] [([1,2,3,4,5],[6,7,8,9,10]),([1,2,3,4],[])] ([],[1,2,3,4,5,6,7,8,9,10]) ([1,2,3,4],[5,6,7,8,9,10]) ([],[1,2,3,4,5,6,7,8,9,10]) [[10,9,8,7,6,5,4,3,2,1],[]] [True,True,False] [False,True,False] [True,False,False] [False,True,True] Just 7 [55,0] [3628800,1] 10 maximum [] 1 minimum [] [1,2,3,4,5,6,7,8,9,10] [[(1,2)],[],[],[(1,2),(2,3),(3,4),(4,5),(5,6)]] [(1,3,5),(2,4,6)] [[4,6],[],[]] [([1,3],[2,4]),([],[])] [([1,3],[2,4],[3,5]),([],[],[])] ("a\nb\nc\n",[],"") ("a b c d",[],"") [[0,1,2,3,4],[]] [[0,1,2,3,4],[]] [[0,1,4],[1,2,3,4],[]]