traceValFn
lib.debug.traceValFn
Docs pulled from | This Revision | about 1 hour ago
Trace the supplied value after applying a function to it, and return the original value.
Inputs
f
-
Function to apply
x
-
Value to trace and return
Type
traceValFn :: (a -> b) -> a -> a
Examples
lib.debug.traceValFn
usage example
traceValFn (v: "mystring ${v}") "foo"
trace: mystring foo
=> "foo"
Noogle detected
Implementation
The following is the current implementation of this function.
traceValFn = f: x: trace (f x) x;