mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 03:42:17 +00:00
forgot about 32 bit targets
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
315fbeb75c
commit
2b40aa90d4
1 changed files with 2 additions and 3 deletions
|
@ -371,9 +371,8 @@ prependIfOk = \list, result ->
|
|||
|
||||
## Returns the length of the list - the number of elements it contains.
|
||||
##
|
||||
## One [List] can store up to 9,223,372,036,854,775,807 elements, which
|
||||
## is exactly equal to the highest valid #I64 value. This means the #U64 this function
|
||||
## returns can always be safely converted to an #I64 without losing any data.
|
||||
## One [List] can store up to `Num.maxI64` elements on 64-bit targets and `Num.maxI32` on 32-bit targets like wasm.
|
||||
## This means the #U64 this function returns can always be safely converted to #I64 or #I32, depending on the target.
|
||||
len : List * -> U64
|
||||
|
||||
## Create a list with space for at least capacity elements
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue