Learn Scala Programming
上QQ阅读APP看书,第一时间看更新

Questions

  1. What will be a type of following function in curried form: (Int, String) => (Long, Boolean, Int) => String
  2. Describe the difference between a partially applied function and a partial function
  3. Define a signature and implement a function uncurry for a curried function of three arguments A => B => C => R
  4. Implement a head-recursive function for factorial calculation n! = n * (n-1) * (n-2) * ... * 1
  5. Implement a tail-recursive function for factorial calculation
  6. Implement a recursive function for factorial calculation using trampolining