These are chat archives for dry-rb/chat
I’m using the
Task monad and I saw that there’s a
pure function but there’s not its “dual”
failed (equivalent of
How would you implement it ?
is this something sensible:
def failed(error) Dry::Monads::Task.new(Concurrent::Promise.reject(error)) end