SeptimusZhu / septimuszhu.github.io

https://septimuszhu.github.io
0 stars 0 forks source link

tips in Functional Programming in Scala | Cien años de soledad #6

Open SeptimusZhu opened 5 years ago

SeptimusZhu commented 5 years ago

https://septimuszhu.github.io/2017/04/06/functional-programming-in-scala-tips/

update everyday(maybe weekly) partial application 123456789def compose[A,B,C](f: B => C, g: A => B): A => C = { (a: A) => f(g(a))}def curry[A,B,C](f: (A, B) => C): A =&

SeptimusZhu commented 5 years ago

lazy guy