Tuples are immutable by design. This is why they are fast, but also why you 
can't push into them.

On Monday, August 29, 2016 at 10:26:29 PM UTC-7, Alexei Serdiuk wrote:
>
> Hi,
>
> I need to choose items from a range (1:N) according to some condition and 
> to push them into a tuple.
>
> I understand how to add items into an array:
> t=Array()
> for i = 1:N
>      if condition==true
>           push!(t, i)
> end; end
>
> Is there a way to push them into a tuple?
>
> Thanks.
>

Reply via email to