3 ms·
Unlike in Haskell `{}` are not optional in Gleam, so that would be written like so: use a <- one({ use b <- two // etc })
by lpil 3y ago
Unlike in Haskell `{}` are not optional in Gleam, so that would be written like so:
use a <- one({
use b <- two
// etc
})
- tome 3y agoThanks. I don't fully grasp what `one` is, but do notation has the nice property that do r <- do foo bar quux r is the same as do foo r <- bar quux r It doesn't look like that holds for use. Specifically one({ use b <- two foo }) baz is not the same as use b <- two foo baz right?
- lpil 3y agoCorrect, it’s not.