query
On this page

elemAt

lib.lists.elemAt

Primop
Docs pulled from | This Revision | 35 minutes ago

Takes 2 arguments

xs, n


Return element n from the list xs. Elements are counted starting from 0. A fatal error occurs if the index is out of bounds.


Noogle also knows

Aliases
Detected Type
elemAt :: [a] -> Int -> a