Functional Ideas in OOP
Immutability, pure functions and lambdas, and where they beat a class.
0 of 20 answered
Start here
An object that cannot change
Foundation
- Not triedAn object that cannot changeFoundation
- Not triedAre the two styles opposedFoundation
- Not triedMethod referencesFoundation
- Not triedThree operations that cover most loopsFoundation
- Not triedWhat makes a function pureFoundation
- Not triedA function taking a functionCore
- Not triedChanging an immutable objectCore
- Not triedCombining two functionsCore
- Not triedUsing Optional properlyCore
- Not triedWhat a lambda actually isCore
- Not triedWhat a pure function buysCore
- Not triedWhat immutability actually buysCore
- Not triedWhen a loop is betterCore
- Not triedEvery callback printed the same numberChallenge
- Not triedLambdas created in a loopChallenge
- Not triedMutating from inside a streamChallenge
- Not triedReplacing a call with its resultChallenge
- Not triedThe default value that remembered the last callChallenge
- Not triedWhat a lambda capturesChallenge
- Not triedWhen a stream actually runsChallenge