Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
meszaros-lajos-gyorgy committed Nov 26, 2022
1 parent 5820dab commit f62ca3b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit f62ca3b

Please sign in to comment.