Matrix.map = curry(function (f, M) {
  return Matrix.of(M).map(f)
})