Skip to main content
Glama

mcp-appstore

by appreply-co
splitAt.js802 B
var _curry2 = require('./internal/_curry2'); var length = require('./length'); var slice = require('./slice'); /** * Splits a given list or string at a given index. * * @func * @memberOf R * @since v0.19.0 * @category List * @sig Number -> [a] -> [[a], [a]] * @sig Number -> String -> [String, String] * @param {Number} index The index where the array/string is split. * @param {Array|String} array The array/string to be split. * @return {Array} * @example * * R.splitAt(1, [1, 2, 3]); //=> [[1], [2, 3]] * R.splitAt(5, 'hello world'); //=> ['hello', ' world'] * R.splitAt(-1, 'foobar'); //=> ['fooba', 'r'] */ module.exports = _curry2(function splitAt(index, array) { return [slice(0, index, array), slice(index, length(array), array)]; });

MCP directory API

We provide all the information about MCP servers via our MCP API.

curl -X GET 'https://glama.ai/api/mcp/v1/servers/appreply-co/mcp-appstore'

If you have feedback or need assistance with the MCP directory API, please join our Discord server