Page 1 of 1
Ruby.Array.Problem.(Solved)
Posted: Sun Mar 08, 2015 10:58 am
by Parki
Look to the file.
Re: Ruby.Array.Problem.
Posted: Sun Mar 08, 2015 11:31 am
by Nubeat7
Re: Ruby.Array.Problem.
Posted: Sun Mar 08, 2015 1:46 pm
by Parki
I won't be rude but...
Any work code which add an array to array?
Re: Ruby.Array.Problem.
Posted: Sun Mar 08, 2015 10:33 pm
by Nubeat7
you can find all you can do with arrays in the link above
http://ruby-doc.org/core-2.2.0/Array.html#method-i-2Bto add an array to another just "add" them,
so if you want to add arrayB to arrayA:
arrayA = arrayA + arrayB
or shorter
arrayA += arrayB
Re: Ruby.Array.Problem.
Posted: Tue Mar 10, 2015 1:35 am
by tulamide
Nubeat7 wrote:http://ruby-doc.org/core-2.2.0/Array.html#method-i-2B
I propose to link to core 1.9.3 instead, because that's what Flowstone uses. It has no influence on this particular question, since nothing has changed for arrays. But this might not always be the case.

Re: Ruby.Array.Problem.
Posted: Tue Mar 10, 2015 12:13 pm
by Parki
I almost pray for it would be last.
Re: Ruby.Array.Problem.
Posted: Tue Mar 10, 2015 12:47 pm
by TheOm
Take a look at this:
- 5.fsm
- (1.3 KiB) Downloaded 829 times
Re: Ruby.Array.Problem.
Posted: Tue Mar 10, 2015 2:46 pm
by Parki
Thank you guys for your help me with my idiotic problems with syntax.