mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-03 08:34:33 +00:00
Fix List.intersperse docs example
This commit is contained in:
parent
412e199939
commit
9b5cee7633
1 changed files with 1 additions and 1 deletions
|
@ -1016,7 +1016,7 @@ 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]
|
||||
## List.intersperse [1, 2, 3] 9 # [1, 9, 2, 9, 3]
|
||||
## ```
|
||||
intersperse : List elem, elem -> List elem
|
||||
intersperse = \list, sep ->
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue