query
On this page

traceValSeqFn

lib.debug.traceValSeqFn

Docs pulled from | This Revision | about 2 hours ago


A combination of traceVal and traceSeq that applies a provided function to the value to be traced after deepSeqing it.

Inputs

f

Function to apply

v

Value to trace

Type

traceValSeqFn :: (a -> b) -> a -> a

Examples

lib.debug.traceValSeqFn usage example

traceValSeqFn (v: v // { d = "foo";}) { a.b.c = 3; }
trace: { a = { b = { c = 3; }; }; d = "foo"; }
=> { a = { ... }; }


Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

traceValSeqFn = f: v: traceValFn f (builtins.deepSeq v v);