unisonweb / base

Unison base libraries
https://share.unison-lang.org/@unison/base
18 stars 6 forks source link

move delay to Function namespace #166

Closed ceedubs closed 1 year ago

ceedubs commented 1 year ago

The top-level namespace of the base library has this function:

delay : (a ->{g} b) -> a -> '{g} b
delay f a = '(f a)

I think this would fit well in the Function namespace along with >>, |>, etc.

runarorama commented 1 year ago

Done and done.