Showing 2 of total 2 results (show query)
r-lib
zeallot:Multiple, Unpacking, and Destructuring Assignment
Provides a %<-% operator to perform multiple, unpacking, and destructuring assignment in R. The operator unpacks the right-hand side of an assignment into multiple values and assigns these values to variables on the left-hand side of the assignment.
Maintained by Nathan Teetor. Last updated 5 years ago.
destructuring-assignmentmultiple-assignmentpattern-matchingunpacking-assignment
259 stars 12.81 score 1.9k scripts 106 dependentsegnha
dub:Unpacking Assignment for Lists via Pattern Matching
Provides an operator for assigning nested components of a list to names via a concise pattern matching syntax. This is especially convenient for assigning individual names to the multiple values that a function may return in the form of a list, and for extracting deeply nested list components.
Maintained by Eugene Ha. Last updated 6 years ago.
pattern-matchingunpacking-assignment
10 stars 3.70 score 4 scripts