Alanna Stone Daenyth
Follow 179 followers · 25 following- @47deg
- Boston, MA, USA
Achievements


x3
x4
Achievements


x3
x4
Organizations
Block or report Daenyth
Report abuseContact GitHub support about this user’s behavior. Learn more about reporting abuse.
Report abuse MorePinned Loading
-
Cockatrice/Cockatrice Cockatrice/Cockatrice Public
A cross-platform virtual tabletop for multiplayer card games
-
taklib taklib Public
A scala library for the Tak board game
Scala 16
-
intro-cats-effect intro-cats-effect Public
Slides 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
2 3I 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]]
If the problem persists, check the GitHub status page or contact support.
Uh oh!
There was an error while loading. Please reload this page.