Revert the fromFunction shallowing

I don't actually know whether we want it shallower or "safer".
Make `fromFunction` easier to read.