MCPcopy Create free account
hub / github.com/effect-app/libs / setValue

Method setValue

repos/effect/packages/effect/src/unstable/cli/Prompt.ts:1964–1966  ·  view source on GitHub ↗
(value: string)

Source from the content-addressed store, hash-verified

1962 /**
1963 * Retrieves the previous date part in the list of parts.
1964 */
1965 previousPart(): Option.Option<DatePart> {
1966 const currentPartIndex = Arr.findFirstIndex(this.parts, (part) => part === this)
1967 if (Option.isSome(currentPartIndex)) {
1968 return Arr.findLast(this.parts.slice(0, currentPartIndex.value), (part) => !part.isToken())
1969 }

Calls

no outgoing calls

Tested by

no test coverage detected