Haskell List Element At Index

[Solved] Haskell List Element At Index | Haskell - Code Explorer | yomemimo.com
Question : haskell list element at index

Answered by : yeah-tiger

-- the "!!" operator return the n-th element from the list
-- *this is zero based
"string" !! 2 --> "r"
[10, 20, 30, 40] !! 1 --> 20

Source : | Last Update : Sat, 24 Oct 20

Answers related to haskell list element at index

Code Explorer Popular Question For Haskell