History variables: Difference between revisions

Line 1,099:
</pre>
=={{header|Julia}}==
Julia currently does not support overloading the assignment "=" operator.
<lang Julia>mutable struct Historied
num::Number
Line 1,115 ⟶ 1,116:
println("Past history of variable x: $(x.history). Current value is $(x.num)")
</lang>{{output}}<pre>Past history of variable x: Number[1, 3, 5]. Current value is 4</pre>
 
 
=={{header|Kotlin}}==
4,105

edits