More Ways to Denote Functions
takeWhile (below 10) [1,5,9,15,20]
takeWhile (\b -> b < 10) [1,5,9,15,20]
takeWhile () [1,5,9,15,20]
below a b = b < a
“Lambda” expression.
Function definition
in place.
f b = b < 10
Partial operator
application -- argument
replaces missing operand.
Föregående bild
Nästa bild
Tillbaka till första bilden
Visa grafisk version