3 ms·
Julia can do this as well: result = if boolean_flag do_this(); else do_that(); end Though it does have the ternary ?: operator too.
by photon-torpedo 9y ago
Julia can do this as well:
result = if boolean_flag do_this(); else do_that(); end
Though it does have the ternary ?: operator too.