Skip to content
Better HN
Top
Best
Ask
Show
New
Jobs
Search
⌘K
0 points
dismalaf
10mo ago
0 comments
Save
Share
In Haskell there's also dot (edit - my bad, not dot, pipe) syntax which allows composing functions left to right. I believe Nim also has it. Just as a few more examples.
0 comments
2 comments · 2 top-level
top
newest
oldest
projektfu
10mo ago
f . g is still doing g first, then f, right? Haskell has pipelines in the Flow library.
https://hackage-content.haskell.org/package/flow-2.0.0.9/doc...
2 more replies
_kb
10mo ago
I don’t think that’s correct. The dot operator is composition with the same semantics as when using normal math notation.
(f . g) x
is equivalent to
f (g x)
1 more reply
j
/
k
navigate · click thread line to collapse