mirror of
https://github.com/c3lang/c3c.git
synced 2026-02-27 12:01:16 +00:00
Remove use of find_len and len_from_list. Rename lenof to lengthof
This commit is contained in:
@@ -10,7 +10,7 @@ Sort list using the counting sort algorithm.
|
||||
*>
|
||||
macro countingsort(list, key_fn = EMPTY_MACRO_SLOT) @builtin
|
||||
{
|
||||
usz len = sort::len_from_list(list);
|
||||
usz len = lengthof(list);
|
||||
cs::csort{$typeof(list), $typeof(key_fn)}(list, 0, len, key_fn, ~((uint)0));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user