Jump to content

User defined pipe and redirection operators: Difference between revisions

m
Line 54:
</lang>
 
As for the concept of a pipe that presents data one record at a time to a downstream function, that corresponds to the J operator <code>@</code> and we could achieve the "left to right" syntax mechanism by explicitly ordering its arguments <code>2 :'v@u'</code> but it's not clear how to demonstrate that usefully, in this task. (And, I could write pagesa lot of code, to accomplish what's being accomplished here with the two successive greps, but I find that concept distasteful and tedious.)
 
That said, note also that J's sort (<code>/:~</code>) and uniq (<code>~.</code>) operations would work just fine on this kind of data. For example:
6,962

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.