Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Documentation #3

Merged
merged 5 commits into from
Feb 9, 2018
Merged

Documentation #3

merged 5 commits into from
Feb 9, 2018

Conversation

arojunior
Copy link
Collaborator

Work in progress

  • Add full API documentation

@arojunior arojunior requested a review from sergiors February 5, 2018 15:27
@arojunior arojunior mentioned this pull request Feb 5, 2018
5 tasks
docs/index.md Outdated
use const Prelude\isScalar;
use function Prelude\all;

class AllTest extends \PHPUnit\Framework\TestCase
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think if we use it like this way?

use const Prelude\isScalar;
use function Prelude\all;

$even = function ($n) {
    return $n % 2 === 0;
};

all($even)([2, 4, 6, 8, 10, 12]); // => true
all(isScalar)([1, 2, 3, 4]); // => true
all(isScalar)([1, 2, [], 4]); // => false

@sergiors sergiors merged commit 6ec8817 into sergiors:master Feb 9, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants