Skip to content
Avatar

Achievements

Achievements

Block or Report

Block or report dsebban

Block user

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.

Report abuse

Contact GitHub support about this user’s behavior. Learn more about reporting abuse.

Report abuse

Pinned

  1. 1
    # Undertsanding the `Pull` type from fs2
    2
    
                  
    3
    ## From the scaladocs
    4
    
                  
    5
    ```scala
  2. 1
     import $ivy.`org.typelevel::cats-core:1.5.0`
    2
     import cats.Contravariant
    3
     import cats.implicits._
    4
    
                  
    5
    {
  3. 1
    # A Streaming library with a superpower: Functional Programming
    2
    
                  
    3
    Scala has a very unique streaming library called FS2 (Functional Streams for Scala). 
    4
    This library embodies all the advantages of functional programming(FP).
    5
    By understanding its design goals you will get exposure to the core ideas that makes FP so appealing. 
  4. 1
    def notSafeFunc: String  => Int = _.toInt
    2
    notSafeFunc("1") // 1
    3
    notSafeFunc("a") // java.lang.NumberFormatException: For input string: "a"
    4
    import $ivy.`org.typelevel::cats-core:1.5.0`
    5
    import cats.implicits._
  5. 1
    def flip[A,B,C]: (A => B => C) => (B => A => C) = f => x => y => f(y)(x)
    2
    def f: Int => String => Int=  a => b => a + b.toInt
    3
    flip(f)("1")(2)
    4
    def ++ : String => String => String = a => b => a + b
    5
    flip(++)("Hello")("World")

246 contributions in the last year

Jan Feb Mar Apr May Jun Jul Aug Sep Oct Nov Dec Jan Mon Wed Fri
Activity overview
Contributed to dsebban/http4s-crud-routes-core, scalapb/gradle-demo, optics-dev/Monocle and 4 other repositories

Contribution activity

January 2022

25 contributions in private repositories Jan 3 – Jan 16

Seeing something unexpected? Take a look at the GitHub profile guide.