Skip to content

Refinement overload added to 'every' functions #1681

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

Merged
merged 1 commit into from
Mar 14, 2022

Conversation

mlegenhausen
Copy link
Collaborator

I have added Refinement overloads to the every function of ReadonlyArray, ReadonlyRecord, ReadonlySet and their mutable counterparts.

Example

import { every } from 'fp-ts/ReadonlyArray'
import { isNumber } from 'fp-ts/number'

declare const as: ReadonlyArray<string | number>
every(isNumber)(as) // ReadonlyArray<number>

@gcanti gcanti merged commit 578785d into gcanti:master Mar 14, 2022
@gcanti
Copy link
Owner

gcanti commented Mar 14, 2022

Thanks @mlegenhausen, released.

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.

None yet

2 participants