Pure functions have the property that applying
them has [...]. Moreover, a pure function must
always return the same value when called twice with the same arguments.
Answer
no effects beyond returning a value
Tags
#python #scip
Question
Pure functions have the property that applying
them has [...]. Moreover, a pure function must
always return the same value when called twice with the same arguments.
Answer
?
Tags
#python #scip
Question
Pure functions have the property that applying
them has [...]. Moreover, a pure function must
always return the same value when called twice with the same arguments.
Answer
no effects beyond returning a value
If you want to change selection, open original toplevel document below and click on "Move attachment"
Parent (intermediate) annotation
Open it Pure functions have the property that applying
them has no effects beyond returning a value. Moreover, a pure function must
always return the same value when called twice with the same arguments.
Original toplevel document
1.2 Elements of Programming some input (their arguments) and return some
output (the result of applying them). The built-in function
>>> abs(-2)
2
can be depicted as a small machine that takes input and produces output.
The function abs is pure. <span>Pure functions have the property that applying
them has no effects beyond returning a value. Moreover, a pure function must
always return the same value when called twice with the same arguments.
Non-pure functions. In addition to returning a value, applying a non-pure
function can generate side effects, which make some change to the state of the
interpreter or computer. A co
Summary
status
not learned
measured difficulty
37% [default]
last interval [days]
repetition number in this series
0
memorised on
scheduled repetition
scheduled repetition interval
last repetition or drill
Details
No repetitions
Discussion
Do you want to join discussion? Click here to log in or create user.