Jump to content

User defined pipe and redirection operators: Difference between revisions

(Go solution)
Line 111:
=: = (GENLINE gen, FILTER filter)GENLINE: filter(gen),
=: = (GENLINE gen, MANYTOONE cmd)GENLINE: cmd(gen);</lang>'''File: Iterator_pipe_utilities.a68'''
* See [[User defined pipe and redirection operators/ALGOL 68#Iterator_pipe_utilities]]
'''File: test_Iterator_pipe_pageIterator_pipe_utilities.a68'''
* See [[User defined pipe and redirection operators/ALGOL 68#Iterator_pipe_page]]
'''File: Iterator_pipe_page.a68'''
* See [[User defined pipe and redirection operators/ALGOL 68]]
'''File: test_Iterator_pipe_page.a68'''
<lang algol68>#!/usr/local/bin/a68g --script #
# First define what kind of record (aka LINE) we are piping and filtering #
Line 174:
Number of scientists: 15
</pre>
 
=={{header|Go}}==
<lang go>package main
Cookies help us deliver our services. By using our services, you agree to our use of cookies.