Scala Tutorial 16 - Function Currying in Scala

preview_player
Показать описание

Currying is the technique of transforming a function that takes multiple arguments into a function that takes a single argument.

★★★Top Online Courses From ProgrammingKnowledge ★★★

★★★ Online Courses to learn ★★★

★★★ Follow ★★★

DISCLAIMER: This video and description contains affiliate links, which means that if you click on one of the product links, I’ll receive a small commission. This help support the channel and allows us to continue to make videos like this. Thank you for the support!
Рекомендации по теме
Комментарии
Автор

The video is clear and easy to understand. The usefulness of currying is the opposite.

bakingbaker
Автор

When do you use currying vs a partially applied function?

dannydk
Автор

so this also covered what is partial function

shailendraakshinthala
Автор

Sir plz tell us about maxbook air for starting programming both for android and ios app developement

And how good it is for android also🙏🙏plz reply
sir

sagarjoshi
Автор

object curryingfunction {

def add = (x:Int)(y:Int)=x+y
def main(args: Array[String]): Unit = {
val nada = add(100)_
println(nada(50))
}

}


What's wrong in it? it's saying 'Any' doesn't take any parameter in place of 50

manjusaroy
Автор

There are no variables in Scala, val is a Value not a variable

essveee