Skip to content

Commit ead281f

Browse files
committed
refactor: partial function - Minor adjustments
1 parent c235108 commit ead281f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -920,7 +920,7 @@ const times2 = n => n * 2
920920
```
921921

922922
## Partial function
923-
A partial function is a function which may not be defined for all inputs - it might return an unexpected result with some inputs or it may never terminate. Partial functions add cognitive overhead, they are harder to reason about and they can lead to runtime errors. Some examples:
923+
A partial function is a [function](#function) which is not defined for all arguments - it might return an unexpected result or may never terminate. Partial functions add cognitive overhead, they are harder to reason about and can lead to runtime errors. Some examples:
924924
```js
925925
// example 1: sum of the list
926926
// sum :: [Number] -> Number

0 commit comments

Comments
 (0)