- Boston, MA, USA
Pinned Loading
-
Cockatrice/Cockatrice
Cockatrice/Cockatrice PublicA cross-platform virtual tabletop for multiplayer card games
-
intro-cats-effect
intro-cats-effect PublicSlides and video recording for my "Intro to Cats-Effect" talk
-
Designing an fs2 `Pull` from scratch
Designing an fs2 `Pull` from scratch 1## The problem
23I have some data which has adjacent entries that I want to group together and perform actions on.
4I know roughly that `fs2.Pull` can be used to "step" through a stream and do more complicated
5logic than the built in combinators allow. I don't know how to write one though!
-
Cheat sheet for common cats monad an...
Cheat sheet for common cats monad and fs2 operation shapes 1| Operation | Input | Result | Notes |
2| --- | --- | --- | --- |
3| map | `F[A]` , `A => B` | `F[B]` | Functor |
4| apply | `F[A]` , `F[A => B]` | `F[B]` | Applicative |
5| (fa, fb, ...).mapN | `(F[A], F[B], ...)` , `(A, B, ...) => C` | `F[C]` | Applicative
-
Scala (cats) map/traverse parallels
Scala (cats) map/traverse parallels 1### Parallels between `map` and similar functions
2```
3map :: F[A] => (A => B) => F[B]
4flatMap :: F[A] => (A => F[B]) => F[B]
5traverse :: G[A] => (A => F[B]) => F[G[B]]
Something went wrong, please refresh the page to try again.
If the problem persists, check the GitHub status page or contact support.
If the problem persists, check the GitHub status page or contact support.