Skip to content

Instantly share code, notes, and snippets.

@Karasiq
Forked from reactormonk/Symbols.md
Created December 9, 2018 08:29
Show Gist options
  • Save Karasiq/257c8ae809276fd55ca86ab701c13343 to your computer and use it in GitHub Desktop.
Save Karasiq/257c8ae809276fd55ca86ab701c13343 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

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