---
source: kcl/src/simulation_tests.rs
description: Variables in memory after executing kw_fn_with_defaults.kcl
---
{
  "HALF_TURN": {
    "type": "Number",
    "value": 180.0,
    "__meta": []
  },
  "QUARTER_TURN": {
    "type": "Number",
    "value": 90.0,
    "__meta": []
  },
  "THREE_QUARTER_TURN": {
    "type": "Number",
    "value": 270.0,
    "__meta": []
  },
  "ZERO": {
    "type": "Number",
    "value": 0.0,
    "__meta": []
  },
  "increment": {
    "type": "Function",
    "expression": {
      "body": {
        "body": [
          {
            "argument": {
              "end": 43,
              "left": {
                "end": 38,
                "name": "x",
                "start": 37,
                "type": "Identifier",
                "type": "Identifier"
              },
              "operator": "+",
              "right": {
                "end": 43,
                "name": "by",
                "start": 41,
                "type": "Identifier",
                "type": "Identifier"
              },
              "start": 37,
              "type": "BinaryExpression",
              "type": "BinaryExpression"
            },
            "end": 43,
            "start": 30,
            "type": "ReturnStatement",
            "type": "ReturnStatement"
          }
        ],
        "end": 45,
        "start": 26
      },
      "end": 45,
      "params": [
        {
          "type": "Parameter",
          "identifier": {
            "end": 15,
            "name": "x",
            "start": 14,
            "type": "Identifier"
          },
          "labeled": false
        },
        {
          "type": "Parameter",
          "identifier": {
            "end": 19,
            "name": "by",
            "start": 17,
            "type": "Identifier"
          },
          "default_value": {
            "type": "Literal",
            "type": "Literal",
            "value": {
              "value": 1.0,
              "suffix": "None"
            },
            "raw": "1"
          }
        }
      ],
      "start": 12,
      "type": "FunctionExpression"
    },
    "memory": [
      0,
      1
    ],
    "__meta": [
      {
        "sourceRange": [
          12,
          45,
          0
        ]
      }
    ]
  },
  "twentyOne": {
    "type": "Number",
    "value": 21.0,
    "__meta": [
      {
        "sourceRange": [
          88,
          89,
          0
        ]
      },
      {
        "sourceRange": [
          96,
          98,
          0
        ]
      }
    ]
  },
  "two": {
    "type": "Number",
    "value": 2.0,
    "__meta": [
      {
        "sourceRange": [
          63,
          64,
          0
        ]
      }
    ]
  }
}
