@eagleoutice/flowr - v2.15.8
    Preparing search index...
    StringFold: {
        call: (this: void, args: BuiltInEvalHandlerArgs) => Value;
        fns: {
            basename: {
                fold: (path: string) => string;
                params: readonly ["path"];
                pkg: Base;
            };
            dirname: {
                fold: (path: string) => string;
                params: readonly ["path"];
                pkg: Base;
            };
            "file.path": {
                defaults: { fsep: "/" };
                fold: (parts: (...)[], fsep: string) => string;
                params: readonly ["...", "fsep"];
                pkg: Base;
            };
            here: {
                fold: (parts: (...)[]) => string;
                params: readonly ["..."];
                pkg: Here;
            };
            nchar: { fold: (s: string) => number; params: readonly ["x"]; pkg: Base };
            paste: {
                defaults: { sep: " " };
                fold: (parts: (...)[], sep: string) => string;
                ignored: readonly ["collapse"];
                params: readonly ["...", "sep"];
                pkg: Base;
            };
            paste0: {
                defaults: { sep: "" };
                fold: (parts: (...)[], sep: string) => string;
                ignored: readonly ["collapse"];
                params: readonly ["...", "sep"];
                pkg: Base;
            };
            tolower: {
                fold: (s: string) => string;
                params: readonly ["x"];
                pkg: Base;
            };
            toupper: {
                fold: (s: string) => string;
                params: readonly ["x"];
                pkg: Base;
            };
            trimws: { fold: (s: string) => string; params: readonly ["x"]; pkg: Base };
        };
        fold: <Info>(
            this: void,
            node: RNamedFunctionCall<Info>,
            resolveArg: (arg: RNode<Info>) => string | undefined,
        ) => string | number | undefined;
        pasteLike: ReadonlySet<string>;
    } = ...

    Folding the string built-ins, from paste to basename.

    Wired into BuiltInEvalHandlerMapper and internal to evaluation: to ask what a node holds, use NodeValue or Resolve.

    Type Declaration

    • Readonlycall: (this: void, args: BuiltInEvalHandlerArgs) => Value

      What a string call amounts to; see resolveAsStringFn.

    • Readonlyfns: {
          basename: {
              fold: (path: string) => string;
              params: readonly ["path"];
              pkg: Base;
          };
          dirname: {
              fold: (path: string) => string;
              params: readonly ["path"];
              pkg: Base;
          };
          "file.path": {
              defaults: { fsep: "/" };
              fold: (parts: (...)[], fsep: string) => string;
              params: readonly ["...", "fsep"];
              pkg: Base;
          };
          here: {
              fold: (parts: (...)[]) => string;
              params: readonly ["..."];
              pkg: Here;
          };
          nchar: { fold: (s: string) => number; params: readonly ["x"]; pkg: Base };
          paste: {
              defaults: { sep: " " };
              fold: (parts: (...)[], sep: string) => string;
              ignored: readonly ["collapse"];
              params: readonly ["...", "sep"];
              pkg: Base;
          };
          paste0: {
              defaults: { sep: "" };
              fold: (parts: (...)[], sep: string) => string;
              ignored: readonly ["collapse"];
              params: readonly ["...", "sep"];
              pkg: Base;
          };
          tolower: { fold: (s: string) => string; params: readonly ["x"]; pkg: Base };
          toupper: { fold: (s: string) => string; params: readonly ["x"]; pkg: Base };
          trimws: { fold: (s: string) => string; params: readonly ["x"]; pkg: Base };
      }

      every string built-in that is folded, see StringFns

      • Readonlybasename: { fold: (path: string) => string; params: readonly ["path"]; pkg: Base }
        • Readonlyfold: (path: string) => string
        • Readonlyparams: readonly ["path"]
        • Readonlypkg: Base
      • Readonlydirname: { fold: (path: string) => string; params: readonly ["path"]; pkg: Base }
        • Readonlyfold: (path: string) => string
        • Readonlyparams: readonly ["path"]
        • Readonlypkg: Base
      • Readonlyfile.path: {
            defaults: { fsep: "/" };
            fold: (parts: (...)[], fsep: string) => string;
            params: readonly ["...", "fsep"];
            pkg: Base;
        }
      • Readonlyhere: { fold: (parts: (...)[]) => string; params: readonly ["..."]; pkg: Here }
      • Readonlynchar: { fold: (s: string) => number; params: readonly ["x"]; pkg: Base }

        R counts characters, so we count code points rather than UTF-16 units

      • Readonlypaste: {
            defaults: { sep: " " };
            fold: (parts: (...)[], sep: string) => string;
            ignored: readonly ["collapse"];
            params: readonly ["...", "sep"];
            pkg: Base;
        }
      • Readonlypaste0: {
            defaults: { sep: "" };
            fold: (parts: (...)[], sep: string) => string;
            ignored: readonly ["collapse"];
            params: readonly ["...", "sep"];
            pkg: Base;
        }
      • Readonlytolower: { fold: (s: string) => string; params: readonly ["x"]; pkg: Base }
      • Readonlytoupper: { fold: (s: string) => string; params: readonly ["x"]; pkg: Base }
      • Readonlytrimws: { fold: (s: string) => string; params: readonly ["x"]; pkg: Base }
    • Readonlyfold: <Info>(
          this: void,
          node: RNamedFunctionCall<Info>,
          resolveArg: (arg: RNode<Info>) => string | undefined,
      ) => string | number | undefined

      The string a call in the AST folds to; see foldStringCall.

    • ReadonlypasteLike: ReadonlySet<string>

      the calls pasting their arguments together, see PasteLikeCalls