fun branching(count: Number, value:String = "") =
    if(count == 0) value
    else if(count == 1) "Bar"
    else if(count == 2) branching(0, value + "Bar")
    else branching(count - 1, value + "Foo")

fun branchingUnless(count: Number, value:String = "") =
    unless(count != 0) value
    else unless(count != 1) "Bar"
    else unless(count != 2) branchingUnless(0, value + "Bar")
    else branchingUnless(count - 1, value + "Foo")
---
branching(10)
