
上QQ阅读APP看书,第一时间看更新
Questions
- What will be a type of following function in curried form: (Int, String) => (Long, Boolean, Int) => String ?
- Describe the difference between a partially applied function and a partial function
- Define a signature and implement a function uncurry for a curried function of three arguments A => B => C => R
- Implement a head-recursive function for factorial calculation n! = n * (n-1) * (n-2) * ... * 1
- Implement a tail-recursive function for factorial calculation
- Implement a recursive function for factorial calculation using trampolining