@eagleoutice/flowr - v2.10.1
    Preparing search index...
    • Links the given arguments to the given parameters within the given graph by name only.

      Type Parameters

      Parameters

      Returns Map<Targets, NodeId[]>

      const parameterSpec = {
      'paramName': 'paramId',
      'anotherParamName': 'anotherParamId',
      // we recommend to always add '...' to your specification
      // this way you can collect all arguments that could not be matched!
      '...': '...'
      } as const;

      const match = pMatch(convertFnArguments(args), parameterSpec);
      const addParam = match.get('paramId');

      To obtain the arguments from a RFunctionCall[], either use processAllArguments (also available via processKnownFunctionCall) or convert them with convertFnArguments.