📅  最后修改于: 2022-03-11 15:00:57.399000             🧑  作者: Mango
//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