Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

Did you try using array.flatten instead of your customize array_concat.rb #1

Closed
LarryBattle opened this Issue · 2 comments

2 participants

@LarryBattle

Did you try using array.flatten instead of your customize array_concat.rb script?

Also array_concat is a bad name because concat is generally meant to combine two or more arrays to a single array.

More information here:

http://apidock.com/ruby/Array/flatten

http://apidock.com/ruby/v1_9_3_125/Array/concat

@LarryBattle LarryBattle closed this
@LarryBattle

Try this instead puts a.flatten.join('')

@LarryBattle LarryBattle reopened this
@maryrosecook

Hiya. Sorry for the long delay. I didn't realise I had unread notifications.

I'm going to delete this script. You've made a great point: flatten does exactly what I want. Thanks a lot.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Something went wrong with that request. Please try again.