code: function invalidArgumentsCount(typeInfo, index, numArgsExpected, args) {
      return new TypeError (trimTrailingSpaces (
        q (typeInfo.name) + ' applied to the wrong number of arguments\n\n' +
        underline (
          typeInfo,
          K (K (_)),
          function(index_) {
            return function(f) {
              return K (K (index_ === index ? f : _));
            };
          }
        ) + '\n' +
        'Expected ' + numArgs (numArgsExpected) +
        ' but received ' + numArgs (args.length) +
        toMarkdownList ('.\n', ':\n\n', show, args)
      ));
    }
docs: invalidArgumentsCount :: (TypeInfo, Integer, Integer, Array Any) -> Error  This function is used in `curry` when a function defined via `def` is applied to too many arguments.