isWordChar
This commit is contained in:
parent
fcce2ac4c0
commit
78fa27f70a
1 changed files with 1 additions and 0 deletions
|
|
@ -80,6 +80,7 @@ export const _rt = {
|
|||
return String(value);
|
||||
},
|
||||
chars: (s: string) => s.split(''),
|
||||
isWordChar: (s: string) => ({ _tag: /^\w$/.test(s) ? 'True' : 'False' }),
|
||||
// join: (delim: string) => (xs: string[]) => xs.join(delim),
|
||||
split: (delim: string) => (xs: string) => xs.split(delim),
|
||||
slice: (s: string | any[]) => (start: number) => (end: number) => s.slice(start, end),
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue