mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-03 19:58:18 +00:00
List.concat -> List.append
Signed-off-by: Anton-4 <17049058+Anton-4@users.noreply.github.com>
This commit is contained in:
parent
af389a9792
commit
67cfe7ece0
1 changed files with 2 additions and 1 deletions
|
@ -77,7 +77,8 @@ EncoderFormatting implements
|
|||
##
|
||||
## ```
|
||||
## expect
|
||||
## customEncoder = Encode.custom (\bytes, _fmt -> List.concat bytes [42]) # Appends the byte 42 to the list
|
||||
## # Appends the byte 42
|
||||
## customEncoder = Encode.custom (\bytes, _fmt -> List.append bytes 42)
|
||||
##
|
||||
## actual = Encode.appendWith [] customEncoder Core.json
|
||||
## expected = [42] # Expected result is a list with a single byte, 42
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue