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
..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset
18.117.187.62