Pudu programming language
Menu
API reference

Std.Function.identity

1 declaration

fn

identity: T -> T

This is a callable function.

What it does

The value itself. Useful wherever a transformation is required and none is

wanted, such as flatten written as flatMap(items, identity).

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