3 ms·
The one thing that I don’t like about pipelining (whether using a pipe operator or method chaining), is that assigning the result to a variable goes in the wron
by layer8 2y ago
The one thing that I don’t like about pipelining (whether using a pipe operator or method chaining), is that assigning the result to a variable goes in the wrong direction, so to speak. There should be an equivalent of the shell’s `>` for piping into a variable as the final step. Of course, if the variable is being declared at the same time, whatever the concrete syntax is would still require some getting used to, being “backwards” compared to regular assignment/initialization.
- jiggunjer 2y agoExists in R: Mydata %>% myfun -> myresult
- AndyKluger 2y agoFWIW in Factor you can set dynamic variables with "coolvalue" thisisthevar set or if you use the `variables` vocab, alternately: "coolvalue" set: thisisthevar and lexical variables are set with "coolvalue" :> thisisthevar