mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 12:18:19 +00:00
forgotten code fence
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
766385a561
commit
e2bd3cfc8b
1 changed files with 2 additions and 0 deletions
|
@ -1029,7 +1029,9 @@ sublist = \list, config ->
|
|||
sublistLowlevel : List elem, Nat, Nat -> List elem
|
||||
|
||||
## Intersperses `sep` between the elements of `list`
|
||||
## ```
|
||||
## List.intersperse 9 [1, 2, 3] # [1, 9, 2, 9, 3]
|
||||
## ```
|
||||
intersperse : List elem, elem -> List elem
|
||||
intersperse = \list, sep ->
|
||||
capacity = 2 * List.len list
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue