pipe a value through a chain of functions