fixes broken tests - bad james!
This commit is contained in:
@@ -117,7 +117,7 @@ fun LinkedList<Int>.sum(f : (Int, Int )-> Int): Int {
|
|||||||
// }
|
// }
|
||||||
//}
|
//}
|
||||||
|
|
||||||
fun Char.isDigit() = Character.isDigit(this)
|
// fun Char.isDigit() = Character.isDigit(this)
|
||||||
|
|
||||||
fun Reader.forEachChar(body : (Char) -> Unit) {
|
fun Reader.forEachChar(body : (Char) -> Unit) {
|
||||||
do {
|
do {
|
||||||
|
|||||||
@@ -86,7 +86,7 @@ class Luhny() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Char.isDigit() = Character.isDigit(this)
|
// fun Char.isDigit() = Character.isDigit(this)
|
||||||
|
|
||||||
fun java.lang.Iterable<Int>.sum(f : (index : Int, value : Int) -> Int) : Int {
|
fun java.lang.Iterable<Int>.sum(f : (index : Int, value : Int) -> Int) : Int {
|
||||||
var sum = 0
|
var sum = 0
|
||||||
|
|||||||
@@ -103,7 +103,7 @@ fun <T> List<T>.backwards() : Iterable<T> = object : Iterable<T> {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
fun Char.isDigit() = Character.isDigit(this)
|
// fun Char.isDigit() = Character.isDigit(this)
|
||||||
|
|
||||||
//class Queue<T>(initialBufSize : Int) {
|
//class Queue<T>(initialBufSize : Int) {
|
||||||
//
|
//
|
||||||
|
|||||||
Reference in New Issue
Block a user