Skip to content

feat(loopUntil) - #89

Open
evanliomain wants to merge 2 commits into
masterfrom
feature/loop-until
Open

feat(loopUntil)#89
evanliomain wants to merge 2 commits into
masterfrom
feature/loop-until

Conversation

@evanliomain

Copy link
Copy Markdown
Owner

loopUntil perform a loop over an input until a predicate is true

loopUntil perform a loop over an input until a predicate is true
@coveralls

coveralls commented Oct 13, 2019

Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 9232888 on feature/loop-until into 8e2af16 on master.


test('2 |> loopUntil 10<, x => x² === 16', () => {
expect(loopUntil<number>(x => 10 < x, x => x ** 2)(2)).toBe(16);
});

Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

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

I think you should add a test case with an array as input

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants