Applies transform if and only if the condition is true
transform
import * as L from "flurp/logic";const f = L.when( N.isPositive, N.multiply(2));f(5); // 10;f(-5); // -5;
Applies
transform
if and only if the condition is trueExample