query
On this page

seq

lib.seq

Primop
Docs pulled from | This Revision | 18 days ago


Nix manual

Takes 2 arguments

e1, e2

Evaluate e1, then evaluate and return e2. This ensures that a computation is strict in the value of e1.

Noogle detected

Aliases

Detected Type
seq :: a -> b -> b

Implementation

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

src/libexpr/primops.cc:1279

static void prim_seq(EvalState & state, CallSite callSite, Value * const * args, Value & v)
{
    state.forceValue(*args[0], noPos);
    state.forceValue(*args[1], noPos);
    v = *args[1];
}

Implementation

The following is the current implementation of this function.

seq