type

Functional Programming - Types and Classes

Haskell 의 많은 function들은 list를 인자로 받습니다. > head [1,2,3,4,5] 1 > tail [1,2,3,4,5] [2,3,4,5] > [1,2,3,4,5] !! 2 3 > drop 2 [1,2,3,4,5] [3,4,5] > length [1,2,3,4,5] 5 > sum [1,2,3,4,5] 15 > product [1,2,3,4,5] 120 > [1,2,3] ++ [4,5] [1,2,3,4,5] > reverse [1,2,3,4,5] [5,4,3,…

Keep reading