Y
Hacker News
new
|
ask
|
show
|
jobs
by
8note
1912 days ago
How do you reference a variable for plumbing if it doesn't have a name?
3 comments
thepratt
1912 days ago
Would Elixir's pipe -
https://elixir-lang.org/getting-started/enumerables-and-stre...
- or Haskell's function composition -
https://wiki.haskell.org/Function_composition
- fit the criteria?
link
oivaksef
1912 days ago
Those would. The Elixir style feels nice. I wonder if something like that could make it into Ruby 4
link
acidbaseextract
1912 days ago
Mentioned in another sub-comment, but Clojure's threading macros do this. They do it by making positional assumptions about the implicit argument:
https://clojure.org/guides/threading_macros
link
inivekin
1912 days ago
Wouldn't any concatenate language fit the bill?
https://concatenative.org/
link