isString
lib.strings.isString
Primop
Docs pulled from | This Revision | about 1 hour ago
Nix manual
Takes 1 arguments
e
Return true if e evaluates to a string, and false otherwise.
Noogle detected
Detected Type
isString :: a -> Bool
Implementation
This function is implemented in c++ and is part of the native nix runtime.
static void prim_isString(EvalState & state, const PosIdx pos, Value ** args, Value & v)
{
state.forceValue(*args[0], pos);
v.mkBool(args[0]->type() == nString);
}
Implementation
The following is the current implementation of this function.
isString