mirror of
https://github.com/ethauvin/kobalt.git
synced 2025-05-06 20:29:52 -07:00
--resolve.
This commit is contained in:
parent
46eb67f668
commit
11c16b0ed1
4 changed files with 84 additions and 4 deletions
|
@ -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)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue