mirror of
https://github.com/voltrevo/ValueScript.git
synced 2026-04-18 03:00:27 -04:00
Add spread concept code
This commit is contained in:
7
concept-code/spread.vsm
Normal file
7
concept-code/spread.vsm
Normal file
@@ -0,0 +1,7 @@
|
||||
export @_anon0 {}
|
||||
|
||||
@_anon0 = function() {
|
||||
mov ["a", "b", "c"] %middle
|
||||
cat [["."], %middle, ["."]] %_tmp0
|
||||
mov %_tmp0 %return
|
||||
}
|
||||
6
inputs/failing/spread.ts
Normal file
6
inputs/failing/spread.ts
Normal file
@@ -0,0 +1,6 @@
|
||||
// // test_output! [".","a","b","c","."]
|
||||
|
||||
export default function () {
|
||||
const middle = ["a", "b", "c"];
|
||||
return [".", ...middle, "."];
|
||||
}
|
||||
Reference in New Issue
Block a user