logoalt Hacker News

nchagnet • today at 1:11 PM • 1 reply • view on HN

Yes Gleam allows you to do f(arg, _)

See the relevant docs: https://tour.gleam.run/everything/#functions-function-captur...


Replies

riffraff • today at 8:36 PM

But that's a single argument right?

Seems more limiting than the closure way. Scala allows multiple _ but in turn that doesn't allow changing ordering.

TBH, I feel this stuff is not really worth it,