From f62ca3be1b89bead2978369b82e579446d3ea234 Mon Sep 17 00:00:00 2001 From: Lajos Meszaros Date: Sat, 26 Nov 2022 20:44:30 +0100 Subject: [PATCH] update readme --- README.md | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/README.md b/README.md index bfb9968..f64f0d6 100644 --- a/README.md +++ b/README.md @@ -257,6 +257,8 @@ A::head([]) // null #### alias for A::head() +_See also: [A::head()](#ahead)_ + ### A::last #### returns the last element of an array, or null, if empty @@ -562,6 +564,8 @@ S::includes('', 'butterfly'); // false -- edge case #### alias for S::includes() +_See also: [S::includes](#sincludes)_ + ### S::split #### splits a string into multiple parts at points matching another string @@ -793,6 +797,16 @@ O::prop('y', $data); // null ### F::complement +#### Wraps the passed in function in a way that when called it inverts it's returning value + +```php +function isOdd(int $n):boolean { + return $n % 2 === 1; +} + +$isEven = F::complement(isOdd); +``` + --- ## Concepts