Answers for "haskell list element at index"

0

haskell list element at index

-- the "!!" operator return the n-th element from the list
-- *this is zero based

"string" !! 2 --> "r"

[10, 20, 30, 40] !! 1 --> 20
Posted by: Guest on October-17-2020

Code answers related to "haskell list element at index"

Browse Popular Code Answers by Language