Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- "Borrow syntax"
- let (x,y, ...) = foo(&a,b,c,&d, ...) => let (a,d,x,y ...) = foo(a,b,c,d, ...)
- So each "&variable" captures one element from the returned tuple, in order. Even immutable variables are allowed to be rebound in this
- way, introducing a new immutable variable within the scope.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement