diff options
Diffstat (limited to 'spec/inputs/destructure.yue')
-rw-r--r-- | spec/inputs/destructure.yue | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/inputs/destructure.yue b/spec/inputs/destructure.yue index 5017ee1..674dfe4 100644 --- a/spec/inputs/destructure.yue +++ b/spec/inputs/destructure.yue | |||
@@ -7,6 +7,14 @@ do | |||
7 | { :hello, :world } = value | 7 | { :hello, :world } = value |
8 | 8 | ||
9 | do | 9 | do |
10 | x, [a, b] = f! | ||
11 | print x, a, b | ||
12 | |||
13 | do | ||
14 | list = [ [1, 2], [3, 4]] | ||
15 | {x, y}, list = lume.first(list), lume.slice list, 2 | ||
16 | |||
17 | do | ||
10 | { yes: no, thing } = world | 18 | { yes: no, thing } = world |
11 | 19 | ||
12 | {:a,:b,:c,:d} = yeah | 20 | {:a,:b,:c,:d} = yeah |