History variables: Difference between revisions
Content added Content deleted
(Added Kotlin) |
(→{{header|Kotlin}}: constructor parameter should not be a property) |
||
Line 805: | Line 805: | ||
<lang scala>// version 1.0.6 |
<lang scala>// version 1.0.6 |
||
class HistoryVariable<T>( |
class HistoryVariable<T>(initialValue: T) { |
||
private val history = mutableListOf<T>() |
private val history = mutableListOf<T>() |
||