Pudu programming language
Menu
API reference

Std.Path.components

1 declaration

fn

components: Str -> Array[Str]

This is a callable function.

What it does

The pieces of a path, with the separators removed.

An absolute path keeps its root as its first piece, so the components of a

path and the path itself say the same thing about where it starts.

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.
  • Names inside [ ] are type arguments, such as the item type held by a collection.

Back to Std.PathSearch related declarations