Examples fixed, some bugs found

This commit is contained in:
Andrey Breslav
2010-12-30 17:01:13 +03:00
parent df5bba0a00
commit f3f4a361d0
17 changed files with 57 additions and 48 deletions
+3 -3
View File
@@ -1,4 +1,4 @@
sealed class Stack<T> : IPushPop<T> {
class Stack<T> : IPushPop<T> {
private val data = new ArrayList<T>();
override fun push(item : T) {
@@ -7,7 +7,7 @@ sealed class Stack<T> : IPushPop<T> {
override fun pop() = data.removeLast()
override val isEmpty { // TODO: This is UGLY :(
override val isEmpty
get() = data.isEmpty
}
}