Std.Text.breakOnEnd
1 declaration
fn
breakOnEnd: Str -> Str -> (Str, Str)This is a callable function.
What it does
The text after the last occurrence of a needle, and everything before it.
Empty text and the whole text when the needle is absent, so a caller that
joins the two halves always gets back what it started with.
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.
