mucked around with matrix-from-fn, until I remembered what I was doing with it. Added some documentation to explain it.