What is the F# equivalent to Haskell's $?
The operator that does the parenthesis automagically.
Google didnt help :(
Something that allows me to write
printfn "%d" $ Seq.sum nums
Instead of this
printfn "%d" (Seq.sum nums)
Use the forward/backward pipe operator. Backward pipe operator is used to maintain the orginal order and forward must me turned over. Function Application Operator ($) in F#?
Backward pipe operator
printfn "%d" <| Seq.sum nums
Forward pipe operator
Seq.sum nums |> printfn "%d"
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With