Bugfix for the transform-input function

The transform-input relied on the native map-function, which can map a function over more than one list, instead of the one defined in the source file itself, which only works on one map