I'm trying to use backpassing after a pipe:
["a", "b", "c", "d"]
|>
n <- List.map
Str.concat "0x" n
But this gives an "unknown operator" error for the backpassing arrow <-
. I've only got backpassing to work here by wrapping the map
call in an anonymous function:
["a", "b", "c", "d"]
|> (\l ->
n <- List.map l
Str.concat "0x" n)
Is there a way to use backpassing after a pipe without the extra anonymous function?
no
Last updated: Jul 06 2025 at 12:14 UTC