@bdelab/jscat - v5.3.2
    Preparing search index...

    Function convertZeta

    • Converts zeta parameters between symbolic and semantic formats.

      Parameters

      • zeta: Zeta

        The zeta parameters to convert.

      • desiredFormat: "symbolic" | "semantic"

        The desired format for the output zeta object. Must be either 'symbolic' or 'semantic'.

      Returns Zeta

      A new zeta object with keys converted to the desired format.

      This function takes a zeta object and a desired format as input. It converts the keys of the zeta object from their current format to the desired format. If the desired format is 'symbolic', the function maps the keys to their symbolic counterparts using the ZETA_KEY_MAP. If the desired format is 'semantic', the function maps the keys to their semantic counterparts using the inverse of ZETA_KEY_MAP.

      • Will throw an error if the desired format is not 'symbolic' or 'semantic'.