Тесты
Язык сайта: Русский
Українська
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
Следующая →
Зарегистрируйся сейчас
или
Подпишись на будущие тесты