Pudu programming language
Menu
API reference

Std.Out.rendered

1 declaration

fn

rendered: &Std.Out.Printer -> &Array[Str] -> Str

This is a callable function.

What it does

Exactly the text a write would produce.

Pure, so what a printer does can be checked by comparing values rather than

by capturing output. Every other function here is stated in terms of this

one, which is what makes the configuration testable at all.

With no pieces the answer is the ending alone: a prefix decorates a line's

content, and there is none.

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.
  • & borrows a value for this call instead of moving or copying it.
  • Names inside [ ] are type arguments, such as the item type held by a collection.

Back to Std.OutSearch related declarations