ghostdogpr / Zio Cheatsheet
ZIO Cheat Sheet
Stars: ✭ 199
Programming Languages
scala
5932 projects
Labels
Projects that are alternatives of or similar to Zio Cheatsheet
Aboutsecurity
A list of payload and bypass lists for penetration testing and red team infrastructure build.
Stars: ✭ 166 (-16.58%)
Mutual labels: cheatsheet
Matlabplotcheatsheet
A cheatsheet for those who plot with MATLAB
Stars: ✭ 177 (-11.06%)
Mutual labels: cheatsheet
Otp cheatsheet
Base OTP behaviors presented as schemas
Stars: ✭ 190 (-4.52%)
Mutual labels: cheatsheet
Cehv10 Notes
📕 Both personal and public notes for EC-Council's CEHv10 312-50, because its thousands of pages/slides of boredom, and a braindump to many
Stars: ✭ 170 (-14.57%)
Mutual labels: cheatsheet
Javascriptcheatsheet
Quick reference to the tremendously accessible high-level language of the web ^_^
Stars: ✭ 175 (-12.06%)
Mutual labels: cheatsheet
Elispcheatsheet
Quick reference to the core language of Emacs ---Editor MACroS.
Stars: ✭ 186 (-6.53%)
Mutual labels: cheatsheet
Stat Cookbook
📙 The probability and statistics cookbook
Stars: ✭ 1,990 (+900%)
Mutual labels: cheatsheet
Python Cheatsheet
Collection of Python code snippets and cheatsheets (made for humans)
Stars: ✭ 176 (-11.56%)
Mutual labels: cheatsheet
Vue Cheatsheet
Modified version of the official VueMastery cheatsheet
Stars: ✭ 188 (-5.53%)
Mutual labels: cheatsheet
Nginx Admins Handbook
How to improve NGINX performance, security, and other important things.
Stars: ✭ 12,463 (+6162.81%)
Mutual labels: cheatsheet
Pdb Cheatsheet
A cheatsheet for the Python Debugger (pdb)
Stars: ✭ 171 (-14.07%)
Mutual labels: cheatsheet
Swift Cheat Sheet
A short guide to using Apple's new programming language, Swift.
Stars: ✭ 186 (-6.53%)
Mutual labels: cheatsheet
Ui Testing Cheat Sheet
How do I test this with UI Testing?
Stars: ✭ 2,039 (+924.62%)
Mutual labels: cheatsheet
Hackthebox
Notes Taken for HTB Machines & InfoSec Community.
Stars: ✭ 167 (-16.08%)
Mutual labels: cheatsheet
Awesome Coding Interview Question Patterns
The most common question-patterns for any coding-interview
Stars: ✭ 196 (-1.51%)
Mutual labels: cheatsheet
Reasonml Cheat Sheet
A cheat sheet for ReasonML -- WIP
Stars: ✭ 187 (-6.03%)
Mutual labels: cheatsheet
ZIO Cheat Sheet
- This is based on ZIO 1.0.0.
- For simplicity, ZIO environment has been omitted but all the functions also work with the form
ZIO[R, E, A]
.
Aliases
Alias | Full Form |
---|---|
UIO[A] |
ZIO[Any, Nothing, A] |
IO[E, A] |
ZIO[Any, E, A] |
Task[A] |
ZIO[Any, Throwable, A] |
RIO[R, A] |
ZIO[R, Throwable, A] |
URIO[R, A] |
ZIO[R, Nothing, A] |
Creating effects
Name | Given | To |
---|---|---|
IO.succeed | A |
IO[Nothing, A] |
IO.fail | E |
IO[E, Nothing] |
IO.interrupt | IO[Nothing, Nothing] |
|
IO.die | Throwable |
IO[Nothing, Nothing] |
IO.effect IO.apply Task.apply |
=> A |
IO[Throwable, A] |
IO.effectTotal UIO.apply |
=> A |
IO[Nothing, A] |
IO.effectAsync | ((IO[E, A] => Unit) => Unit) |
IO[E, A] |
IO.fromEither | Either[E, A] |
IO[E, A] |
IO.left | A |
IO[Nothing, Either[A, Nothing]] |
IO.right | A |
IO[Nothing, Either[Nothing, A]] |
IO.fromFiber | Fiber[E, A] |
IO[E, A] |
IO.fromFuture | ExecutionContext => Future[A] |
IO[Throwable, A] |
IO.fromOption | Option[A] |
IO[Unit, A] |
IO.none | IO[Nothing, Option[Nothing]] |
|
IO.some | A |
IO[Nothing, Option[A] |
IO.fromTry | Try[A] |
IO[Throwable, A] |
IO.bracket |
IO[E, A] (acquire) A => IO[Nothing, Unit] (release) A => IO[E, B] (use) |
IO[E, B] |
IO.when |
Boolean IO[E, _]
|
IO[E, Unit] |
IO.whenM |
IO[E, Boolean] IO[E, _]
|
IO[E, Unit] |
IO.whenCase |
A PartialFunction[A, IO[E, _]]
|
IO[E, Unit] |
IO.whenCaseM |
IO[E, A] PartialFunction[A, IO[E, _]]
|
IO[E, Unit] |
Transforming effects
Name | From | Given | To |
---|---|---|---|
map | IO[E, A] |
A => B |
IO[E, B] |
as | IO[E, A] |
B |
IO[E, B] |
orElseFail | IO[E, A] |
E2 |
IO[E2, A] |
unit | IO[E, A] |
IO[E, Unit] |
|
>>= (flatmap) |
IO[E, A] |
A => IO[E1, B] |
IO[E1, B] |
flatten | IO[E, IO[E1, A]] |
IO[E1, A] |
|
bimap | IO[E, A] |
E => E2 A => B
|
IO[E2, B] |
mapError | IO[E, A] |
E => E2 |
IO[E2, A] |
mapErrorCause | IO[E, A] |
Cause[E] => Cause[E2] |
IO[E2, A] |
flatMapError | IO[E, A] |
E => IO[Nothing, E2] |
IO[E2, A] |
sandbox | IO[E, A] |
IO[Cause[E], A] |
|
flip | IO[E, A] |
IO[A, E] |
|
tap | IO[E, A] |
A => IO[E1, _] |
IO[E1, A] |
tapBoth | IO[E, A] |
A => IO[E1, _] E => IO[E1, _]
|
IO[E1, A] |
tapError | IO[E, A] |
E => IO[E1, _] |
IO[E1, A] |
absolve | IO[E, Either[E, A]] |
IO[E, A] |
|
get | IO[Nothing, Option[A]] |
IO[Unit, A] |
|
head | IO[E, List[A]] |
IO[Option[E], A] |
|
toFuture | IO[Throwable, A] |
IO[Nothing, Future[A]] |
Recover from errors
Name | From | Given | To |
---|---|---|---|
either | IO[E, A] |
IO[Nothing, Either[E, A]] |
|
option | IO[E, A] |
IO[Nothing, Option[A]] |
|
ignore | IO[E, A] |
IO[Nothing, Unit] |
|
run | IO[E, A] |
IO[Nothing, Exit[E, A]] |
|
<> (orElse) |
IO[E, A] |
IO[E2, A1] |
IO[E2, A1] |
orElseEither | IO[E, A] |
IO[E2, B] |
IO[E2, Either[A, B]] |
fold | IO[E, A] |
E => B A => B
|
IO[Nothing, B] |
foldM | IO[E, A] |
E => IO[E2, B] A => IO[E2, B]
|
IO[E2, B] |
foldCauseM | IO[E, A] |
Cause[E] => IO[E2, B] A => IO[E2, B]
|
IO[E2, B] |
catchAll | IO[E, A] |
E => IO[E2, A1] |
IO[E2, A1] |
catchAllCause | IO[E, A] |
Cause[E] => IO[E2, A1] |
IO[E2, A1] |
catchSome | IO[E, A] |
PartialFunction[E, IO[E1, A1]] |
IO[E1, A1] |
retry | IO[E, A] |
Schedule[E1, S] |
ZIO[Clock, E1, A] |
eventually | IO[E, A] |
IO[Nothing, A] |
Terminate fiber with errors
Name | From | Given | To |
---|---|---|---|
orDie | IO[Throwable, A] |
IO[Nothing, A] |
|
orDieWith | IO[E, A] |
E => Throwable |
IO[Nothing, A] |
refineOrDie | IO[Throwable, A] |
PartialFunction[Throwable, E1] |
IO[E1, A] |
refineOrDieWith | IO[E, A] |
PartialFunction[E, E1] E => Throwable
|
IO[E1, A] |
Combining effects + parallelism
Name | From | Given | To |
---|---|---|---|
IO.foldLeft |
Iterable[A] S (S, A) => IO[E, S]
|
IO[E, S] |
|
IO.foreach |
Iterable[A] A => IO[E, B]
|
IO[E, List[B]] |
|
IO.foreachPar |
Iterable[A] A => IO[E, B]
|
IO[E, List[B]] |
|
IO.foreachParN |
Long Iterable[A] A => IO[E, B]
|
IO[E, List[B]] |
|
IO.forkAll | Iterable[IO[E, A]] |
IO[Nothing, Fiber[E, List[A]]] |
|
fork | IO[E, A] |
IO[Nothing, Fiber[E, A]] |
|
<*> (zip) |
IO[E, A] |
IO[E1, B] |
IO[E1, (A, B)] |
*> (zipRight) |
IO[E, A] |
IO[E1, B] |
IO[E1, B] |
<* (zipLeft) |
IO[E, A] |
IO[E1, B] |
IO[E1, A] |
<&> (zipPar) |
IO[E, A] |
IO[E1, B] |
IO[E1, (A, B)] |
&> (zipParRight) |
IO[E, A] |
IO[E1, B] |
IO[E1, B] |
<& (zipParLeft) |
IO[E, A] |
IO[E1, B] |
IO[E1, A] |
race | IO[E, A] |
IO[E1, A1] |
IO[E1, A1] |
raceAll | IO[E, A] |
Iterable[IO[E1, A1]] |
IO[E1, A1] |
raceEither | IO[E, A] |
IO[E1, B] |
IO[E1, Either[A, B]] |
Finalizers
Name | From | Given | To |
---|---|---|---|
ensuring | IO[E, A] |
UIO[_] |
IO[E, A] |
onError | IO[E, A] |
Cause[E] => UIO[_] |
IO[E, A] |
onInterrupt | IO[E, A] |
UIO[_] |
IO[E, A] |
onTermination | IO[E, A] |
Cause[Nothing] => UIO[_] |
IO[E, A] |
Timing
Name | From | Given | To |
---|---|---|---|
IO.never | IO[Nothing, Nothing] |
||
IO.sleep | Duration |
ZIO[Clock, Nothing, Unit] |
|
delay | IO[E, A] |
Duration |
ZIO[Clock, E, A] |
timeout | IO[E, A] |
Duration |
ZIO[Clock, E, Option[A]] |
timed | IO[E, A] |
ZIO[Clock, E, (Duration, A)] |
|
forever | IO[E, A] |
IO[E, Nothing] |
|
repeat | IO[E, A] |
Schedule[A, B] |
ZIO[Clock, E, B] |
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].