-
From:
```
demux :: (Monad m, Ord k) => (a -> k) -> (a -> m (Fold m a b)) -> Fold m a (m (Map k b), Maybe (k, b))
```
To:
```
demux :: (Monad m, Ord k) => (k -> m (Fold m a b)) -> Fold m (…
-
- Fetch news from one of each channels: https://twitter.com/monad_xyz ; https://t.me/monad_xyz
-
At the bare minimum, we need
- [x] OptionT
- [x] ErrorT
- [x] ReaderT
- [x] WriterT
- [x] StateT
- [x] ContT
There are already full implementations of these in [ocaml-monadic](https://github.com/bkc3…
bkc39 updated
9 years ago
-
**Description:** After the 1st number is entered in the First field, the Second field is populated with "submit". As seen in picture below. The code sample is below too. Note that changing "(Just n1)"…
-
Hi Phil
Thanks for writing the book!
I have been reading through for a while now and just thought I'd mention. I had a bit of confusion with the introduction of do notation so early. The behavio…
-
Currently, SAWScript offers a `for` function for iterating over a list in a monadic fashion:
```
for : {m, a, b} [a] -> (a -> m b) -> m [b]
```
For many use cases, however, it would be more co…
-
With coroutines we can implement a Haskell-ish do-notation. Call them "doroutines":
```
from pymonad.operators.maybe import Maybe, Just, Nothing
from pymonad.tools import curry
@curry(2)
def …
ckp95 updated
2 months ago
-
Similar to #3309, but using record disambiguation to bamboozle the type inference of F*:
```fstar
// Two monads, with returns and binds
assume val m1: Type0 -> Type0
assume val m2: Type0 -> Type…
TWal updated
4 months ago
-
For
1. ch14/ch10_revisit_with_state.hs 9ec42d6b9a79e35b4b96e82bf1fc775bd5d32291
2. ch14/ch10_revisit_with_state2.hs 12dd388381dfe3159195bc817fbbf292ed2b418e
State monad and Maybe monad are mix used.
…
-
Forgive me if this is covered by your tutorials, but it seems as though calling the same shader twice inside the same render call results in weird behaviour.
I'm trying to render a textured quad on…