Horje
haskell append to list Code Example
[Solved] - haskell append to list Code Example
Try following codes
first element in list haskell
list = [1, 2, 3]

head :: [a] -> a
head (x:_) = x

head list -- 1
haskell append to list
1 : [2, 3]
--return [1, 2, 3]
remove first element list haskell
a = [1, 2, 3, 4]
b = tail a
  
-- b == [2, 3, 4]
Date: 2022-05-21 05:02:10
Category: haskell
More for You