History variables: Difference between revisions

→‎{{header|Kotlin}}: constructor parameter should not be a property
(Added Kotlin)
(→‎{{header|Kotlin}}: constructor parameter should not be a property)
Line 805:
<lang scala>// version 1.0.6
 
class HistoryVariable<T>(val initialValue: T) {
private val history = mutableListOf<T>()
 
9,476

edits