search for: structured_binding

Displaying 2 results from an estimated 2 matches for "structured_binding".

2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
...ammar of the new feature (in terms of src/main/gram.y, preferably without introducing conflicts) and its semantics (including the corner cases, some of which you have already mentioned). I'm not sure I'm up to the task. -- Best regards, Ivan [*] https://en.cppreference.com/w/cpp/language/structured_binding https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Operators/Destructuring_assignment
2023 Mar 11
1
Multiple Assignment built into the R Interpreter?
On 11/03/2023 9:54 a.m., Sebastian Martin Krantz wrote: > Thanks Duncan, > > I know about list2env(), in fact a previous version of collapse::`%=%` > was coded as > > "%=%" <- function(lhs, rhs) { > ?? if(!is.character(lhs)) stop("lhs needs to be character") > ?? if(!is.list(rhs)) rhs <- as.vector(rhs, "list") > ?? if(length(lhs)