MCPcopy
hub / github.com/andremichelle/openDAW / y

Method y

packages/lib/std/src/string-mapping.ts:37–40  ·  view source on GitHub ↗
(x: string)

Source from the content-addressed store, hash-verified

35 return {unit, value: values[y]}
36 }
37 y(x: string): ParseResult<int> {
38 const index = values.indexOf(x)
39 return index === -1 ? {type: "unknown", value: "💣"} : {type: "explicit", value: index}
40 }
41 }
42 export const values = <T>(unit: string, values: ReadonlyArray<T>, strings: ReadonlyArray<string>): StringMapping<T> =>
43 new class implements StringMapping<T> {

Callers

nothing calls this directly

Calls 1

indexOfMethod · 0.80

Tested by

no test coverage detected