Тести
Мова сайту: Українська
Українська
English
Русский
Тести з програмування
Вхід
Реєстрація
Тести з програмування
Теорія
Сніпети
Статті
Головна
Android
Ціни
FAQ
Історія Cosmo
Правила та умови сервісу
Політика конфіденційності
Політика щодо файлів cookie
Зворотній Зв’язок
higher-order functions
:
Мова контенту: 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
← Попередня
1
Наступна →
Зареєструйся Зараз
або
Підпишись на майбутні тести