query
On this page

traceValFn

lib.traceValFn

Docs pulled from | This Revision | about 3 hours 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"
(lib.debug.traceValFn)

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

traceValFn = f: x: trace (f x) x;