Quizzes
Site Language: English
Українська
English
Русский
Programming Tests
Login
Sign Up
Programming Tests
Theory
Snippets
Papers
Landing
Android
Prices
FAQ
Cosmo Story
Terms and Conditions
Privacy Policy
Cookies Policy
Send Feedback
higher-order functions
:
Content language: English
Русский
What is a higher-order function?
higher-order functions
Higher-order Functions
higher-order functions
Higher-order Functions Example
higher-order functions
Currying example
higher-order functions
Given the following curried function, what is the correct way to get a reference to curriedSum’s “second” function? def curriedSum(x: Int)(y: Int) = x + y
higher-order functions
Function composing feeds the output of one function to the input of another function. Look at the implementation of compose and select the correct result of code execution def compose[A, B, C](f: B => C, g: A => B): A => C = a => f(g(a)) def f(b: Int): Int = b / 2 def g(a: Int): Int = a + 2 compose(f, g)(2) compose(g, f)(2)
higher-order functions
Select all correct way to define a function
higher-order functions
← Prev
1
Next →
Sign Up Now
or
Subscribe for future quizzes