FP Flashcards
1
Q
Name four functional interfaces
A
Consumer: single argument, no return value
Function: one argument, produces a result
Predicate: takes one argument, returns Boolean
Supplier: no input, but supplies output
Name four functional interfaces
Consumer: single argument, no return value
Function: one argument, produces a result
Predicate: takes one argument, returns Boolean
Supplier: no input, but supplies output