Skip to content

Commit

Permalink
Updated readme
Browse files Browse the repository at this point in the history
  • Loading branch information
masterfermin02 committed Mar 21, 2021
1 parent 17d67f5 commit b3a0697
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,11 +76,13 @@ The parameters to Slash functions are arranged to make it convenient for curryin
The last two points together make it very easy to build functions as sequences of simpler functions, each of which transforms the data and passes it along to the next. Slash is designed to support this style of coding.

## Install
Requires PHP 7.4+
Requires PHP 8+
```bash
composer require masterfermin02/slash
```

For php 7 use version 1.4.0

## Usage
Slash operations are pure functions that can be used alone.

Expand Down
2 changes: 1 addition & 1 deletion src/average.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
* @return float|int|null
*
* @example
Slash\average([1, 3, 5]); // === 3
* Slash\average([1, 3, 5]); // === 3
*/
function average($list)
{
Expand Down

0 comments on commit b3a0697

Please sign in to comment.