Julia Programming Language
Quick 'for' and 'if' one-line loop
New to Julia
question
Nosferican
July 16, 2020, 11:38pm
5
A generic approach
c .= ifelse.(c .== 0, 1, c)
5 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Condition on a whole array
General Usage
6
2625
February 19, 2018
How to do one-liners and other short conditionals?
General Usage
10
1297
September 27, 2017
For loop inside an if condition statement
New to Julia
4
384
July 21, 2021
Is there a concise way to express "[println(i, j) for i = 1 : j, j = 1:3]"
New to Julia
4
473
June 2, 2024
Style question: ternary operator or short circuit operator or if-end
General Usage
17
1240
February 6, 2020