Ruby.Array.Problem.(Solved)

For general discussion related FlowStone
Post Reply
User avatar
Parki
Posts: 20
Joined: Fri Feb 27, 2015 11:12 am

Ruby.Array.Problem.(Solved)

Post by Parki »

Look to the file.
Attachments
Ruby.Array.Problem..fsm
(1.22 KiB) Downloaded 836 times
Last edited by Parki on Tue Mar 10, 2015 2:47 pm, edited 1 time in total.
I hope my english was understeandable.
Skype id - parkidesu
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Ruby.Array.Problem.

Post by Nubeat7 »

User avatar
Parki
Posts: 20
Joined: Fri Feb 27, 2015 11:12 am

Re: Ruby.Array.Problem.

Post by Parki »

I won't be rude but...
Any work code which add an array to array?
I hope my english was understeandable.
Skype id - parkidesu
User avatar
Nubeat7
Posts: 1347
Joined: Sat Apr 14, 2012 9:59 am
Location: Vienna
Contact:

Re: Ruby.Array.Problem.

Post 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-2B

to add an array to another just "add" them,
so if you want to add arrayB to arrayA:

arrayA = arrayA + arrayB

or shorter

arrayA += arrayB
tulamide
Posts: 2714
Joined: Sat Jun 21, 2014 2:48 pm
Location: Germany

Re: Ruby.Array.Problem.

Post 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. :)
"There lies the dog buried" (German saying translated literally)
User avatar
Parki
Posts: 20
Joined: Fri Feb 27, 2015 11:12 am

Re: Ruby.Array.Problem.

Post by Parki »

I almost pray for it would be last.
Attachments
5.fsm
(1.19 KiB) Downloaded 817 times
I hope my english was understeandable.
Skype id - parkidesu
TheOm
Posts: 103
Joined: Tue Jan 28, 2014 7:35 pm
Location: Germany

Re: Ruby.Array.Problem.

Post by TheOm »

Take a look at this:
5.fsm
(1.3 KiB) Downloaded 830 times
User avatar
Parki
Posts: 20
Joined: Fri Feb 27, 2015 11:12 am

Re: Ruby.Array.Problem.

Post by Parki »

Thank you guys for your help me with my idiotic problems with syntax.
I hope my english was understeandable.
Skype id - parkidesu
Post Reply