@eagleoutice/flowr - v2.15.8
    Preparing search index...
    • The one place to ask what flowR knows about a function by name: one of its own built-ins, a package function the signature database carries, or both. What the built-in states wins wherever the two overlap, exactly as queryFnProps joins them. undefined when neither has anything to say about the name.

      Parameters

      • name: Identifier

        The function to ask about, qualified (Identifier.make('lead', 'dplyr')) to pin the package down.

      • ctx: ReadOnlyFlowrAnalyzerContext

        The analyzer context the built-ins, the database and the assumed versions come from.

      • Optionalversion: string

        The package version to answer for, the one the analysis assumes if omitted.

      Returns FnInfo | undefined

      fnInfoLookup - to ask the same question for many names

      const ctx = analyzer.inspectContext();
      fnInfo(Identifier.make('lead', 'dplyr'), ctx)?.parameters; // ['x', 'n', 'default', 'order_by', '...']
      fnInfo(Identifier.make('nchar'), ctx)?.foldable; // true, flowR folds it itself