Std.Function.on
1 declaration
fn
on: fn(B, B) -> C -> fn(A) -> B -> A -> A -> CThis is a callable function.
What it does
Two values compared after the same transformation is applied to each.
on(compare, key, left, right) compares by key, which is how a comparison on
one field is built from a comparison on its type.
Read the signature
- The text after the name is the type checked by Pudu.
- Read arrows from left to right: inputs come first, and the final type is returned.
