implement Str.dropPrefix and Str.dropSuffix

This commit is contained in:
Luke Boswell 2024-08-17 17:21:37 +10:00
parent d66f581eeb
commit 4be6c5d4ce
No known key found for this signature in database
GPG key ID: F6DB3C9DB47377B0
3 changed files with 111 additions and 0 deletions

View file

@ -1373,6 +1373,8 @@ define_builtins! {
46 STR_REPLACE_FIRST: "replaceFirst"
47 STR_REPLACE_LAST: "replaceLast"
48 STR_RELEASE_EXCESS_CAPACITY: "releaseExcessCapacity"
49 STR_DROP_PREFIX: "dropPrefix"
50 STR_DROP_SUFFIX: "dropSuffix"
}
6 LIST: "List" => {
0 LIST_LIST: "List" exposed_apply_type=true // the List.List type alias