Anonymous user
History variables: Difference between revisions
→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details
(→{{header|Kotlin}}: constructor parameter should not be a property) |
(→{{header|Kotlin}}: Updated example see https://github.com/dkandalov/rosettacode-kotlin for details) |
||
Line 803:
=={{header|Kotlin}}==
<lang scala>// version 1.
class HistoryVariable<T>(initialValue: T) {
|