Skip to content

Instantly share code, notes, and snippets.

@reactormonk
Last active November 19, 2021 14:06
Show Gist options
  • Star 11 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
  • Save reactormonk/8bba396887cfa4d202c62761a1084ab5 to your computer and use it in GitHub Desktop.
Save reactormonk/8bba396887cfa4d202c62761a1084ab5 to your computer and use it in GitHub Desktop.
Scalaz Symbol Guide
Symbol Explanation Hint
\/ Right-leaning Either Split ways, go one way or the other
-\/ Left value of \/ - is on the left side
\/- Right value of \/ - is on the right side
>>= flatMap shove result into
>> flatMap(_ => ..) shove into, but ignore the result
|@| Applicatives into Tuple Scream operator
|+| Append via Monoid + was taken
`> ` fa.map(_ => b)
*> fa.flatMap(_ => fb) Do both effects, left to right, use right value
<* fa.flatMap(a => fb.map(_ => a)) Do both effects, left to right, use left value
<=< Alias for compose Left fish
>=> Alias for andThen Right fish
=== Type-safe equality check Really equals
/== Type-safe not-equality check Slashed equals
`? ?` Type-safe order comparison

List Of Symbols

@puffnfresh
Copy link

puffnfresh commented Jun 16, 2016

Symbol Explanation Hint
`> ` fa.map(_ => b)
*> fa.flatMap(_ => fb) Do both effects, left to right, use right value
<* fa.flatMap(a => fb.map(_ => a)) Do both effects, left to right, use left value
<=< Alias for compose Left fish
>=> Alias for andThen Right fish
=== Type-safe equality check Really equals
/== Type-safe not-equality check Slashed equals
`? ?` Type-safe order comparison

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment