Pudu programming language
Menu
API reference

Std.Function.compose

1 declaration

fn

compose: fn(B) -> C -> fn(A) -> B -> A -> C

This is a callable function.

What it does

One function after another: compose(f, g, x) is f(g(x)).

The outer function is written first, which is the order it is applied last.

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.

Back to Std.FunctionSearch related declarations