diff options
| author | Li Jin <dragon-fly@qq.com> | 2020-08-06 10:32:05 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2020-08-06 10:32:05 +0800 |
| commit | cb5371a7dcfde196db07f5a2a3f144888b73d522 (patch) | |
| tree | 65d7a5d031b83a78f3d3e00725dc15b4bfda2176 /spec/inputs/backcall.moon | |
| parent | 2506c1b429e952245295e54e71dac4b345e88984 (diff) | |
| download | yuescript-cb5371a7dcfde196db07f5a2a3f144888b73d522.tar.gz yuescript-cb5371a7dcfde196db07f5a2a3f144888b73d522.tar.bz2 yuescript-cb5371a7dcfde196db07f5a2a3f144888b73d522.zip | |
remove support for escape new line symbol, binary operator expressions can now be written multiline without escape new line symbol.
Diffstat (limited to 'spec/inputs/backcall.moon')
| -rw-r--r-- | spec/inputs/backcall.moon | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/spec/inputs/backcall.moon b/spec/inputs/backcall.moon index 86b0ba3..a648b16 100644 --- a/spec/inputs/backcall.moon +++ b/spec/inputs/backcall.moon | |||
| @@ -1,10 +1,10 @@ | |||
| 1 | 1 | ||
| 2 | {"abc", 123, 998} |> foreach print | 2 | {"abc", 123, 998} |> foreach print |
| 3 | 3 | ||
| 4 | {1,2,3} \ | 4 | {1,2,3} |
| 5 | |> map((x)-> x * 2) \ | 5 | |> map((x)-> x * 2) |
| 6 | |> filter((x)-> x > 4) \ | 6 | |> filter((x)-> x > 4) |
| 7 | |> reduce(0, (a,b)-> a + b) \ | 7 | |> reduce(0, (a,b)-> a + b) |
| 8 | 8 | ||
| 9 | 9 | ||
| 10 | [i |> tostring for i = 0,10] |> table.concat(",") |> print | 10 | [i |> tostring for i = 0,10] |> table.concat(",") |> print |
