Merge pull request #2002 from rtfeldman/builtins-list-intersperse

Add builtin `List.intersperse`
This commit is contained in:
Folkert de Vries 2021-11-18 22:00:10 +01:00 committed by GitHub
commit a4fc813ca3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
5 changed files with 124 additions and 2 deletions

View file

@ -1075,8 +1075,10 @@ define_builtins! {
47 LIST_FIND: "find"
48 LIST_FIND_RESULT: "#find_result" // symbol used in the definition of List.find
49 LIST_SUBLIST: "sublist"
50 LIST_SPLIT: "split"
51 LIST_SPLIT_CLOS: "#splitClos"
50 LIST_INTERSPERSE: "intersperse"
51 LIST_INTERSPERSE_CLOS: "#intersperseClos"
52 LIST_SPLIT: "split"
53 LIST_SPLIT_CLOS: "#splitClos"
}
5 RESULT: "Result" => {
0 RESULT_RESULT: "Result" imported // the Result.Result type alias