MCPcopy
hub / github.com/Effect-TS/effect / split

Function split

packages/effect/src/Schema.ts:4781–4790  ·  view source on GitHub ↗
(separator: string)

Source from the content-addressed store, hash-verified

4779 * @since 3.10.0
4780 */
4781export const split = (separator: string): transform<SchemaClass<string>, Array$<typeof String$>> =>
4782 transform(
4783 String$.annotations({ description: "a string that will be split" }),
4784 Array$(String$),
4785 {
4786 strict: true,
4787 decode: (i) => i.split(separator),
4788 encode: (a) => a.join(separator)
4789 }
4790 )
4791
4792/**
4793 * @since 3.10.0

Callers

nothing calls this directly

Calls 5

splitMethod · 0.80
transformInterface · 0.70
Array$Function · 0.70
annotationsMethod · 0.65
joinMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…