arrow-fx / arrow.fx / Ref / unsafe
fun <F, A> unsafe(a: A, MD:
MonadDefer
<F>):
Ref
<F, A>
Like invoke but returns the newly allocated ref directly instead of wrapping it in MonadDefer.invoke. This method is considered unsafe because it is not referentially transparent – it allocates mutable state.
See Also
Do you like Arrow?
✖