(fix) Updated to use FromFn.
Merge pull request #10 from iron/fix/from-fn

(fix) Updated to use FromFn.