MCPcopy Create free account
hub / github.com/Effect-TS/effect / nextPart

Function nextPart

packages/effect/src/unstable/cli/Prompt.ts:1849–1852  ·  view source on GitHub ↗

* Retrieves the next date part in the list of parts.

()

Source from the content-addressed store, hash-verified

1847 * Retrieves the next date part in the list of parts.
1848 */
1849 nextPart(): Option.Option<DatePart> {
1850 const currentPartIndex = Option.getOrElse(Arr.findFirstIndex(this.parts, (part) => part === this), () => 0)
1851 return Arr.findFirst(this.parts.slice(currentPartIndex + 1), (part) => !part.isToken())
1852 }
1853
1854 /**
1855 * Retrieves the previous date part in the list of parts.

Callers

nothing calls this directly

Calls 1

isTokenMethod · 0.80

Tested by

no test coverage detected