FilterableWithIndex
Model
- FilterableWithIndex
- FilterableWithIndex1
- FilterableWithIndex2
- FilterableWithIndex2C
- FilterableWithIndex3
- FilterableWithIndex3C
- FilterableWithIndex4
Utilities
- FilterWithIndex
- FilterWithIndex1
- FilterWithIndex2
- FilterWithIndex2C
- FilterWithIndex3
- FilterWithIndex3C
- FilterWithIndex4
- PartitionWithIndex
- PartitionWithIndex1
- PartitionWithIndex2
- PartitionWithIndex2C
- PartitionWithIndex3
- PartitionWithIndex3C
- PartitionWithIndex4
- PredicateWithIndex
- RefinementWithIndex
Model
FilterableWithIndex
Signature
export interface FilterableWithIndex<F, I> extends FunctorWithIndex<F, I>, Filterable<F> {
readonly filterMapWithIndex: <A, B>(fa: HKT<F, A>, f: (i: I, a: A) => Option<B>) => HKT<F, B>
readonly filterWithIndex: FilterWithIndex<F, I>
readonly partitionMapWithIndex: <A, B, C>(
fa: HKT<F, A>,
f: (i: I, a: A) => Either<B, C>,
) => Separated<HKT<F, B>, HKT<F, C>>
readonly partitionWithIndex: PartitionWithIndex<F, I>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FilterableWithIndex1
Signature
export interface FilterableWithIndex1<F extends URIS, I> extends FunctorWithIndex1<F, I>, Filterable1<F> {
readonly filterMapWithIndex: <A, B>(fa: Kind<F, A>, f: (i: I, a: A) => Option<B>) => Kind<F, B>
readonly filterWithIndex: FilterWithIndex1<F, I>
readonly partitionMapWithIndex: <A, B, C>(
fa: Kind<F, A>,
f: (i: I, a: A) => Either<B, C>,
) => Separated<Kind<F, B>, Kind<F, C>>
readonly partitionWithIndex: PartitionWithIndex1<F, I>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FilterableWithIndex2
Signature
export interface FilterableWithIndex2<F extends URIS2, I> extends FunctorWithIndex2<F, I>, Filterable2<F> {
readonly filterMapWithIndex: <E, A, B>(fa: Kind2<F, E, A>, f: (i: I, a: A) => Option<B>) => Kind2<F, E, B>
readonly filterWithIndex: FilterWithIndex2<F, I>
readonly partitionMapWithIndex: <E, A, B, C>(
fa: Kind2<F, E, A>,
f: (i: I, a: A) => Either<B, C>,
) => Separated<Kind2<F, E, B>, Kind2<F, E, C>>
readonly partitionWithIndex: PartitionWithIndex2<F, I>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FilterableWithIndex2C
Signature
export interface FilterableWithIndex2C<F extends URIS2, I, E> extends FunctorWithIndex2C<F, I, E>, Filterable2C<F, E> {
readonly filterMapWithIndex: <A, B>(fa: Kind2<F, E, A>, f: (i: I, a: A) => Option<B>) => Kind2<F, E, B>
readonly filterWithIndex: FilterWithIndex2C<F, I, E>
readonly partitionMapWithIndex: <A, B, C>(
fa: Kind2<F, E, A>,
f: (i: I, a: A) => Either<B, C>,
) => Separated<Kind2<F, E, B>, Kind2<F, E, C>>
readonly partitionWithIndex: PartitionWithIndex2C<F, I, E>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FilterableWithIndex3
Signature
export interface FilterableWithIndex3<F extends URIS3, I> extends FunctorWithIndex3<F, I>, Filterable3<F> {
readonly filterMapWithIndex: <R, E, A, B>(fa: Kind3<F, R, E, A>, f: (i: I, a: A) => Option<B>) => Kind3<F, R, E, B>
readonly filterWithIndex: FilterWithIndex3<F, I>
readonly partitionMapWithIndex: <R, E, A, B, C>(
fa: Kind3<F, R, E, A>,
f: (i: I, a: A) => Either<B, C>,
) => Separated<Kind3<F, R, E, B>, Kind3<F, R, E, C>>
readonly partitionWithIndex: PartitionWithIndex3<F, I>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FilterableWithIndex3C
Signature
export interface FilterableWithIndex3C<F extends URIS3, I, E> extends FunctorWithIndex3C<F, I, E>, Filterable3C<F, E> {
readonly filterMapWithIndex: <R, A, B>(fa: Kind3<F, R, E, A>, f: (i: I, a: A) => Option<B>) => Kind3<F, R, E, B>
readonly filterWithIndex: FilterWithIndex3C<F, I, E>
readonly partitionMapWithIndex: <R, A, B, C>(
fa: Kind3<F, R, E, A>,
f: (i: I, a: A) => Either<B, C>,
) => Separated<Kind3<F, R, E, B>, Kind3<F, R, E, C>>
readonly partitionWithIndex: PartitionWithIndex3C<F, I, E>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FilterableWithIndex4
Signature
export interface FilterableWithIndex4<F extends URIS4, I> extends FunctorWithIndex4<F, I>, Filterable4<F> {
readonly filterMapWithIndex: <S, R, E, A, B>(
fa: Kind4<F, S, R, E, A>,
f: (i: I, a: A) => Option<B>,
) => Kind4<F, S, R, E, B>
readonly filterWithIndex: FilterWithIndex4<F, I>
readonly partitionMapWithIndex: <S, R, E, A, B, C>(
fa: Kind4<F, S, R, E, A>,
f: (i: I, a: A) => Either<B, C>,
) => Separated<Kind4<F, S, R, E, B>, Kind4<F, S, R, E, C>>
readonly partitionWithIndex: PartitionWithIndex4<F, I>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
Utilities
FilterWithIndex
Signature
export interface FilterWithIndex<F, I> {
<A, B extends A>(fa: HKT<F, A>, refinementWithIndex: RefinementWithIndex<I, A, B>): HKT<F, B>
<A>(fa: HKT<F, A>, predicateWithIndex: PredicateWithIndex<I, A>): HKT<F, A>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti
FilterWithIndex1
Signature
export interface FilterWithIndex1<F extends URIS, I> {
<A, B extends A>(fa: Kind<F, A>, refinementWithIndex: RefinementWithIndex<I, A, B>): Kind<F, B>
<A>(fa: Kind<F, A>, predicateWithIndex: PredicateWithIndex<I, A>): Kind<F, A>
}
Details
- Added in 0.1.0
License
- MIT – Copyright (c) 2017-present Giulio Canti