mirror of
https://github.com/tweag/nickel.git
synced 2024-10-04 23:27:15 +03:00
f435a22d76
NOTE: new dev dependancy (duplicate) to avoid duplication of code in the test suite. Check `tests/destructuring.rs` for an example.
5 lines
180 B
Plaintext
5 lines
180 B
Plaintext
|
|
let baz = 10 in
|
|
let x @ {foo ? 10, b = xb, d ? baz = bar, c = xc @ {ca, ..}, ..y} = {a = 2, b = 3, c = {ca = 22, cb = 0}} in
|
|
y.a + x.b - xb + x.c.ca - xc.ca - ca + foo + bar == 0
|