I have a python code here :
>>> a, *b , c = (1,2,3,4)
>>> a
1
>>> b
[2, 3]
>>> c
4
>>>
Is there a similar facility available with Julia?
Same command in Julia is giving error : " * is not a unary operator"
I have a python code here :
>>> a, *b , c = (1,2,3,4)
>>> a
1
>>> b
[2, 3]
>>> c
4
>>>
Is there a similar facility available with Julia?
Same command in Julia is giving error : " * is not a unary operator"
Copyright © 2021 Jogjafile Inc.
You can use the
...operator for this. (Requires Julia version 1.9 or above.)