From 7dd9851952cbdd98cface8e2a7110c66225093d9 Mon Sep 17 00:00:00 2001 From: Edwin Kofler Date: Tue, 17 Oct 2023 04:58:22 -0700 Subject: [PATCH] Fix broken link --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index 2d42eaa..37fafed 100644 --- a/readme.md +++ b/readme.md @@ -1186,7 +1186,7 @@ times(-1)(console.log) ### Dealing with partial functions Partial functions are dangerous as they need to be treated with great caution. You might get an unexpected (wrong) result or run into runtime errors. Sometimes a partial function might not return at all. Being aware of and treating all these edge cases accordingly can become very tedious. -Fortunately a partial function can be converted to a regular (or total) one. We can provide default values or use guards to deal with inputs for which the (previously) partial function is undefined. Utilizing the [`Option`](#Option) type, we can yield either `Some(value)` or `None` where we would otherwise have behaved unexpectedly: +Fortunately a partial function can be converted to a regular (or total) one. We can provide default values or use guards to deal with inputs for which the (previously) partial function is undefined. Utilizing the [`Option`](#option) type, we can yield either `Some(value)` or `None` where we would otherwise have behaved unexpectedly: ```js // example 1: sum of the list