S
Size: a a a
S
AK
P
at
P
J
at
к
K
if ([condition1, condition2, ...].every(Boolean)) // если все true.
if ([condition1, condition2, ...].some(Boolean)) // если хотя бы один true.
к
at
к
if ([condition1, condition2, ...].every(Boolean)) // если все true.
if ([condition1, condition2, ...].some(Boolean)) // если хотя бы один true.
x => x
, но в принципе даclass And implements<Monoid<And>> {
static empty: And = new And(true);
constructor(value: boolean) {
this.value = value;
}
append(other: And): And {
return new And(this.value && other.value);
}
}
[conds].foldMap(And).value;
α
J
S
S
S
S
S