Add the append and prepend functions

They yield stdin+val or val+stdin, respectively