code: function flatMap(mapper) {
      return function (maybe) {
          for (const value of maybe) {
              return mapper(value);
          }
          return maybe_1.nothing();
      };
  }
docs: Return a maybe with the current value, if any, mapped to a new Maybe