Wolfram: Global Variable
Set[x, y]-
🔸 SHORT SYNTAX:
x=ymake x to have value y
Effectively, this is how you create a global variable.
💡 TIP: builtin variable and function names start with an Uppercase letter. You should have your variable and function names starting in lower case.
(* global variable, of current session *) x = 2 💡 TIP: Technically,
Setcreates a syntax transformation rule. When the pattern on left-hand-side occur, replace it by right-hand-side.