Pudu programming language
Menu
API reference

Std.Bool.select

1 declaration

fn

select: Bool -> T -> T -> T

This is a callable function.

What it does

One of two values, chosen by a condition.

The false case comes first so the arguments read in the order if writes

its branches once the condition has been read.

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.BoolSearch related declarations