const int a = [=](){ //do stuff here that returns an int: if (condition) { return foo(); } else { return bar(); } }();
let x: String = { if 3 == 4 { return "Hello" } else { return "Goodbye" } }()
let x = (3 == 4) ? "Hello" : "Goodbye"