3 ms·
Yeah, you're talking about the mathematical definition of a bound variable. Functional programming languages use this whenever you define a function: foo x
by chongli 13y ago
Yeah, you're talking about the mathematical definition of a bound variable. Functional programming languages use this whenever you define a function:
foo x = x * 2
Every time you call foo, x is bound to a new value (but only within the scope of foo). This is not the same as mutating some memory location associated with the name x.