If you have a problem or need to report a bug please email : support@dsprobotics.com
There are 3 sections to this support area:
DOWNLOADS: access to product manuals, support files and drivers
HELP & INFORMATION: tutorials and example files for learning or finding pre-made modules for your projects
USER FORUMS: meet with other users and exchange ideas, you can also get help and assistance here
NEW REGISTRATIONS - please contact us if you wish to register on the forum
Users are reminded of the forum rules they sign up to which prohibits any activity that violates any laws including posting material covered by copyright
Ruby.Array.Problem.(Solved)
8 posts
• Page 1 of 1
Ruby.Array.Problem.(Solved)
Look to the file.
- Attachments
-
- Ruby.Array.Problem..fsm
- (1.22 KiB) Downloaded 742 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
Skype id - parkidesu
-
Parki - Posts: 20
- Joined: Fri Feb 27, 2015 11:12 am
Re: Ruby.Array.Problem.
use .push or << to append an array
http://ruby-doc.org/core-2.2.0/Array.ht ... od-i-3C-3C
http://ruby-doc.org/core-2.2.0/Array.ht ... od-i-3C-3C
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Ruby.Array.Problem.
I won't be rude but...
Any work code which add an array to array?
Any work code which add an array to array?
I hope my english was understeandable.
Skype id - parkidesu
Skype id - parkidesu
-
Parki - Posts: 20
- Joined: Fri Feb 27, 2015 11:12 am
Re: Ruby.Array.Problem.
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
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
-
Nubeat7 - Posts: 1347
- Joined: Sat Apr 14, 2012 9:59 am
- Location: Vienna
Re: Ruby.Array.Problem.
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)
- tulamide
- Posts: 2714
- Joined: Sat Jun 21, 2014 2:48 pm
- Location: Germany
Re: Ruby.Array.Problem.
I almost pray for it would be last.
- Attachments
-
- 5.fsm
- (1.19 KiB) Downloaded 729 times
I hope my english was understeandable.
Skype id - parkidesu
Skype id - parkidesu
-
Parki - Posts: 20
- Joined: Fri Feb 27, 2015 11:12 am
Re: Ruby.Array.Problem.
Take a look at this:
- TheOm
- Posts: 103
- Joined: Tue Jan 28, 2014 7:35 pm
- Location: Germany
Re: Ruby.Array.Problem.
Thank you guys for your help me with my idiotic problems with syntax.
I hope my english was understeandable.
Skype id - parkidesu
Skype id - parkidesu
-
Parki - Posts: 20
- Joined: Fri Feb 27, 2015 11:12 am
8 posts
• Page 1 of 1
Who is online
Users browsing this forum: No registered users and 79 guests