length
lib.length
Primop
Docs pulled from | This Revision | 16 minutes ago
Noogle detected
Detected Type
length :: [a] -> Int
Implementation
This function is implemented in c++ and is part of the native nix runtime.
static void prim_length(EvalState & state, const PosIdx pos, Value ** args, Value & v)
{
state.forceList(*args[0], pos, "while evaluating the first argument passed to builtins.length");
v.mkInt(args[0]->listSize());
}