File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
Functions as Data/total_and_partial_functions Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -3,7 +3,7 @@ We have already discussed how a function can be categorized as pure or impure.
33A pure function does not produce side effects; instead, it operates solely on its arguments and produces a result.
44Conversely, an impure function may induce side effects and draw input from contexts other than its arguments.
55
6- This chapter introduces another important distinction: a function can be ушерук total or partial.
6+ This chapter introduces another important distinction: a function can be either total or partial.
77A total function is one that is defined for all input values within its domain.
88In other words, it yields an output value for every possible input value.
99A total function never throws an exception or results in a runtime error arising from undefined input values.
You can’t perform that action at this time.
0 commit comments