History variables: Difference between revisions

Content added Content deleted
(New post.)
m (→‎{{header|Wren}}: Changed to Wren S/H)
Line 3,014: Line 3,014:
{{trans|Kotlin}}
{{trans|Kotlin}}
Not built in but we can soon make a suitable class.
Not built in but we can soon make a suitable class.
<syntaxhighlight lang="ecmascript">class HistoryVariable {
<syntaxhighlight lang="wren">class HistoryVariable {
construct new(initValue) {
construct new(initValue) {
_history = [initValue]
_history = [initValue]