Implement Length Methods
Implements the `$len()` and `$len_bytes()` methods for strings, and the `@len()` method for arrays. The len method for arrays returns the number of elements in the array. The len method for strings returns the number of graphemes in the string, whereas the len_bytes method returns the number of bytes the string occupies.
Showing
- examples/methods.ion 12 additions, 0 deletionsexamples/methods.ion
- examples/methods.out 46 additions, 0 deletionsexamples/methods.out
- src/parser/mod.rs 1 addition, 0 deletionssrc/parser/mod.rs
- src/parser/shell_expand/mod.rs 23 additions, 1 deletionsrc/parser/shell_expand/mod.rs
- src/parser/shell_expand/words.rs 9 additions, 0 deletionssrc/parser/shell_expand/words.rs
Loading
Please register or sign in to comment