Scala Predicate

[Solved] Scala Predicate | Scala - Code Explorer | yomemimo.com
Question : scala predicate

Answered by : filaseta-angelo

//A predicate is a function that returns a Boolean.
//For example, to check if an Integer is even we can define the
//function isEven.
def isEven(i: Int) = i % 2 == 0
isEven: (i: Int)Boolean

Source : https://stackoverflow.com/questions/40009857/scala-predicates/40010018 | Last Update : Wed, 07 Apr 21

Answers related to scala predicate

Code Explorer Popular Question For Scala