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)
Ruby.Array.Problem.(Solved)
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
Skype id - parkidesu
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
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
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
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)
Re: Ruby.Array.Problem.
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
Skype id - parkidesu
Re: Ruby.Array.Problem.
Take a look at this:
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