mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
Add Str.toScalars builtin
This commit is contained in:
parent
b1fe76adbf
commit
acb7cf99e1
11 changed files with 73 additions and 3 deletions
|
@ -873,6 +873,13 @@ pub fn types() -> MutMap<Symbol, (SolvedType, Region)> {
|
|||
Box::new(str_type()),
|
||||
);
|
||||
|
||||
// Str.toScalars : Str -> List U32
|
||||
add_top_level_function_type!(
|
||||
Symbol::STR_TO_SCALARS,
|
||||
vec![str_type()],
|
||||
Box::new(list_type(u32_type())),
|
||||
);
|
||||
|
||||
// isEmpty : Str -> Bool
|
||||
add_top_level_function_type!(
|
||||
Symbol::STR_IS_EMPTY,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue