Quantcast
Channel: ReScript Forum - Latest posts
Viewing all articles
Browse latest Browse all 2592

Console.log with return value

$
0
0

I’ve used a tap command with fp-ts pipes. It console logs and takes an optional label.

let tap = (x, f) => {
  f(x)
  x
}

let foo = "foo"->tap(~label="bar")

Viewing all articles
Browse latest Browse all 2592

Trending Articles