parallel-assignment Questions
1
Solved
I got this:
x,(y,z)=1,*[2,3]
x # => 1
y # => 2
z # => nil
I want to know why z has the value nil.
Bodycheck asked 6/6, 2015 at 3:43
2
Solved
I'm trying to make a simple if-let statement with more than one value. The if block should be executed only if all optional vars are non-nil, plus they should be assigned to the new let-vars (const...
Devereux asked 18/7, 2014 at 17:24
1
© 2022 - 2024 — McMap. All rights reserved.