set function:

Set a variable. The first argument should be the variable name, the second one should be the value and the third one should be the function to run with the variable.

Examples:

  • running: (set "foo", {"key": 100}, (get (: "foo") "key" )) will give: 100

  • running: (set "foo", {"key": 100}, (get :foo "key" )) will give: 100

  • running: (set 12, {"key": 100}, (get (: "foo") "key" )) will return nothing

  • running: (set "foo", {"key": 100}, (get (: 12) "key" )) will return nothing