I have been too used to Imperative Programming which is the usual way of telling the computer to perform step by step the procedure to get the final result. On the other han
Think of c filters. Where you read from stdin and write to stdout. The code may be imperative but thr program is used like a a function. Say you have a program 'function, then piping to it:
cat foo |function |tee bar
Will filter the contents of foo through function then through the filter tee to both write to stdout and create bar . Think also of grep and awk the iterator in both is implied and they are used like functions.