timriley on prefer-local-components-when-importing
Prefer local components when im… (compare)
timriley on support-deeper-provider-source-class-hierarchies
Allow deeper Provider::Source h… (compare)
timriley on nil-import-namespaces
Import root components via `nil… Rename spec (compare)
timriley on add-file-path-to-component
timriley on main
Expose Component#file_name Thi… Merge pull request #237 from dr… (compare)
hum maybe this is better:
future_rows = Dry::Monads::List.[]
requests.find_in_baches { |data|
future_rows += Task[:io] { compute_rows(data) }
}
future_rows.traverse { |rows|
…
}
WDYT ?
Monads::List
isn't meant to be mutable
future_rows = []
coerce
?
List.new
, it's O(1)
Fruit
and if its name
field was "banana"
then my_fruit.banana?
would return true
. or... should there be helper functions like is_banana?(fruit)
is this something sensible:
def failed(error)
Dry::Monads::Task.new(Concurrent::Promise.reject(error))
end
???
Base
as default there but Dry::Struct