Replies: 1 comment 4 replies
-
I think you mean the
Example: import * as A from 'fp-ts/Array'
import { when } from 'fp-ts-std/Function'
const f: Endomorphism<string> = when(A.isNonEmpty)(A.append('another item for my non empty array')) NB as currently written |
Beta Was this translation helpful? Give feedback.
4 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Can somebody please help me to use fp-ts-std when with fp-ts Array's isNonEmpty?
I'm currently using it like this;
but it is displaying an error;
Cannot assign boolean to predicate
Beta Was this translation helpful? Give feedback.
All reactions