diff options
| author | Li Jin <dragon-fly@qq.com> | 2026-01-22 15:03:12 +0800 |
|---|---|---|
| committer | Li Jin <dragon-fly@qq.com> | 2026-01-22 15:03:12 +0800 |
| commit | f1454bbbd13a71da2005ff789cde2da0e9eb81f6 (patch) | |
| tree | 37131187f4218dd3ebec049101c28a161e7ca289 /spec/outputs/pipe_chain_combo.lua | |
| parent | 604a8e5e53cdc7391a502fcabf07e8f1cc2a778c (diff) | |
| download | yuescript-main.tar.gz yuescript-main.tar.bz2 yuescript-main.zip | |
Diffstat (limited to 'spec/outputs/pipe_chain_combo.lua')
| -rw-r--r-- | spec/outputs/pipe_chain_combo.lua | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/spec/outputs/pipe_chain_combo.lua b/spec/outputs/pipe_chain_combo.lua new file mode 100644 index 0000000..6cf40a9 --- /dev/null +++ b/spec/outputs/pipe_chain_combo.lua | |||
| @@ -0,0 +1,9 @@ | |||
| 1 | local f1 | ||
| 2 | f1 = function(x) | ||
| 3 | return x + 2 | ||
| 4 | end | ||
| 5 | local f2 | ||
| 6 | f2 = function(x) | ||
| 7 | return x * 3 | ||
| 8 | end | ||
| 9 | local value = print(tostring(f2(f1(3)))) | ||
