fun foo(flag: Boolean): Int { when (flag) { true -> return 1 false -> return 0 } }