Skip to content
Flatten a Ruby array without using Array#flatten
Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
spec
.rspec
.ruby-version
Gemfile
Gemfile.lock
README.md
flatten_array_service.rb

README.md

flatten-array

Motivation behind this script

After reading this article on Intercom's blog, I thought, let's write a short Ruby script that flattens an array!

Setup

git clone git@github.com:thealiilman/flatten-array.git
cd flatten-array

bundle install
pry -r ./flatten_array_service.rb
You can’t perform that action at this time.