Julia Programming Language
Do nothing in the use of ternary operator
New to Julia
control-flow
jar1
November 19, 2022, 4:03am
4
n = condition ? 1 : n
is a way without
if
.
1 Like
show post in topic
Related topics
Topic
Replies
Views
Activity
Ternary operator if only syntax
Internals & Design
question
7
760
December 8, 2020
Style question: ternary operator or short circuit operator or if-end
General Usage
17
1416
February 6, 2020
Why is ternary operator two times faster than if statement?
New to Julia
4
4500
November 30, 2016
Problem with ternary operator
New to Julia
2
606
March 13, 2017
How to do one-liners and other short conditionals?
General Usage
10
1346
September 27, 2017