Julia Programming Language
Creating a list of symbols using a comprehension
New to Julia
question
de-souza
October 10, 2022, 2:02pm
2
You could do
[Symbol("M", i) for i in 1:10]
or
Symbol.("M", 1:10)
2 Likes
show post in topic
Related topics
Topic
Replies
Views
Activity
Is this a strange Inconsistency or bug in Julia?
New to Julia
1
549
May 5, 2018
Making a 1xN array using comprehensions
General Usage
question
5
593
January 18, 2017
How to interpolate symbol as symbol, not as variable name?
General Usage
2
748
July 31, 2017
How to make a vector of symbols using a macro
Data
2
916
July 2, 2020
Interpolation of expression
General Usage
metaprogramming
5
618
August 2, 2019