TIL: `join` over `(->)`

I discovered a neat pattern: using join with the function arrow ((-)) as a Monad. When you join over functions, you get: This lets you pass the same argument twice:

Never miss a post

Get new writing sent to your inbox.

Subscribe