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

Function spaces

packages/printer/src/internal/doc.ts:935–943  ·  view source on GitHub ↗
(n: number)

Source from the content-addressed store, hash-verified

933
934/** @internal */
935export const spaces = (n: number): Doc.Doc<never> => {
936 if (n <= 0) {
937 return empty
938 }
939 if (n === 1) {
940 return char(" ")
941 }
942 return text(textSpaces(n))
943}
944
945/** @internal */
946export const words = (str: string, splitChar = " "): ReadonlyArray<Doc.Doc<never>> =>

Callers 1

doc.tsFile · 0.85

Calls 3

textSpacesFunction · 0.85
charFunction · 0.70
textFunction · 0.70

Tested by

no test coverage detected