Hacker News new | ask | show | jobs
by arankine 2090 days ago
It's an implementation of the functional option pattern used a lot in go code. See https://dave.cheney.net/2014/10/17/functional-options-for-fr... for a rundown.
1 comments

It's a functor, though the type system doesn't let you write a reusable fmap.