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

Function nextPart

packages/cli/src/internal/prompt/date.ts:404–410  ·  view source on GitHub ↗

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

()

Source from the content-addressed store, hash-verified

402 * Retrieves the next date part in the list of parts.
403 */
404 nextPart(): Option.Option<DatePart> {
405 return Arr.findFirstIndex(this.parts, (part) => part === this).pipe(
406 Option.flatMap((currentPartIndex) =>
407 Arr.findFirst(this.parts.slice(currentPartIndex + 1), (part) => !part.isToken())
408 )
409 )
410 }
411
412 /**
413 * Retrieves the previous date part in the list of parts.

Callers

nothing calls this directly

Calls 2

isTokenMethod · 0.80
pipeMethod · 0.65

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…