Skip to content

Instantly share code, notes, and snippets.

Keybase proof

I hereby claim:

  • I am rdormer on github.
  • I am rdormer (https://keybase.io/rdormer) on keybase.
  • I have a public key ASDT6xCPMDTy5bBKZadlVsXaK-SKJRPM2Q2KL-LYUd3BYgo

To claim this, I am signing this object:

@rdormer
rdormer / gist:0d63b2dc83a7d9a8dce49f38db4b0855
Created June 24, 2016 15:10
Codebytes screening question
# This is a re-implementation of the flatten method for arrays.
# Accepts any number of arbitrarily nested arrays and non-array
# values, flattening them all into a single un-nested array. The
# output of elements in the array is dependent on the order of input
# elements.
def flatten(*arrs)
flattened = []
#outer loop for splat arguments