1
0
Fork 0
mirror of https://github.com/ethauvin/kobalt.git synced 2025-05-06 20:29:52 -07:00

--resolve.

This commit is contained in:
Cedric Beust 2015-11-08 12:26:26 -08:00
parent 46eb67f668
commit 11c16b0ed1
4 changed files with 84 additions and 4 deletions

View file

@ -43,9 +43,10 @@ class AsciiArt {
bl + r(s.length + 2, h) + br)
}
fun logBox(s: String) {
val defaultLog : (s: String) -> Unit = { log(1, " $it") }
fun logBox(s: String, print: (String) -> Unit = defaultLog) {
box(s).forEach {
log(1, " $it")
print(it)
}
}
}