query
On this page

elemAt

lib.strings.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 detected

Aliases

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

Implementation

This function is implemented in c++ and is part of the native nix runtime.