Pudu programming language
Menu
API reference

Std.Glob.literalPrefix

1 declaration

fn

literalPrefix: Str -> Str

This is a callable function.

What it does

The longest leading run of a pattern that varies in no way.

What a caller walking a directory tree starts from: everything the pattern

can match is under this, so nothing above it needs to be looked at.

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