Jakub Hampl

Results 141 comments of Jakub Hampl

Yes, that sounds like a great proposal. I think the main reason I didn't just do it was mostly licensing related as I wasn't confident the licenses were compatible. If...

> I like the flexibility of b a lot. Can you clarify: would you just like to have `b` or would you like to have both? > Because this helper...

Hm, so I just realized (thanks Copilot), that the list version is just: ``` List.filterMap (\index -> Array.get index array) indices ``` which is fairly trivial... So perhaps this isn't...

Another thing to consider would be potentially asynchronously initializing. Some applications must perform effects before they can be properly started (even the good old `Time.now`, it's annoying having to actually...

Looks pretty good, I'll try to use it in our app tomorrow/next week and see how it works in practice. On a slightly separate note, I wonder if something [like...

1. I'd like to see some comparison vs using [`List.Extra.stoppableFoldl`](https://package.elm-lang.org/packages/elmcraft/core-extra/latest/List-Extra#stoppableFoldl), since that aims at more or less the same use case. 2. I feel like we should figure out some...

> It's very similar, but step is Step a whereas result is Result e x, and the additional type parameter is essential Yeah but `Step (Result e x)` is what...

And perhaps like this, which is fairly nice ```elm withCombineFoldl : List String -> Result String (Dict String Int) withCombineFoldl = Result.Extra.combineFoldl (\item acc -> parse item |> Result.map (\(...

Hi @maca! Can you share a bit more about the package, your configuration, etc.?

We could also potentially do something with the fact that `Dict.union (Dict.singleton key value) dict)` is equivalent to `Dict.insert key value dict`.