Prevent this user from interacting with your repositories and sending you notifications.
Learn more about blocking users.
You must be logged in to block users.
Contact GitHub support about this user’s behavior.
Learn more about reporting abuse.
# Undertsanding the `Pull` type from fs2
## From the scaladocs
# A Streaming library with a superpower: Functional Programming
Scala has a very unique streaming library called FS2 (Functional Streams for Scala).
This library embodies all the advantages of functional programming(FP).
By understanding its design goals you will get exposure to the core ideas that makes FP so appealing.
def notSafeFunc: String => Int = _.toInt
notSafeFunc("1") // 1
notSafeFunc("a") // java.lang.NumberFormatException: For input string: "a"
def flip[A,B,C]: (A => B => C) => (B => A => C) = f => x => y => f(y)(x)
def f: Int => String => Int= a => b => a + b.toInt
def ++ : String => String => String = a => b => a + b
Seeing something unexpected? Take a look at the
GitHub profile guide.