1
1
mirror of https://github.com/tweag/nickel.git synced 2024-10-06 08:07:37 +03:00
nickel/tests/destructuring/fun.ncl

3 lines
88 B
Plaintext
Raw Normal View History

let f = fun x@{a, b} {c=d, ..} => a - x.a + b - x.b + d in
2022-01-11 19:10:29 +03:00
f {a=1, b=2} {c=3, d=4} == 3