MCPcopy
hub / github.com/Effect-TS/effect / spaces

Function spaces

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

Source from the content-addressed store, hash-verified

850
851/** @internal */
852export const spaces = (n: number): Doc.Doc<never> => {
853 if (n <= 0) {
854 return empty
855 }
856 if (n === 1) {
857 return char(" ")
858 }
859 return text(textSpaces(n))
860}
861
862/** @internal */
863export 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