query
On this page

elemAt

builtins.elemAt

Primop
Docs pulled from | This Revision | 1 day 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.

This function is not defined in a .nix file. It is likely a builtins function or an alias of a builtins function. builtins functions are predefined functions provided by Nix.

Noogle detected

Aliases

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

Implementation

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