-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

> This isn't the same behavior, is it?  This will only ever result in a
> single flat array, whereas we previously could have returned arrays
> of arrays, right?

Don't you mean flatten?

compact: [1]

  Returns a copy of self with all nil elements removed.

While reject [2]

  Returns a new array containing the items in self for which the block
  is not true.

Which would mean with o.nil? the same as compact? Or do I completely
misunderstand something?

~pete

[1] http://ruby-doc.org/core/classes/Array.html#M002216
[2] http://ruby-doc.org/core/classes/Array.html#M002196
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.10 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/

iEYEARECAAYFAkz3ZHYACgkQbwltcAfKi3+MowCePV5/w1P2jKHKsrIIJB5g+bKA
Y0YAn3yfjw/KQhXSycikUdY1sYK3+Knh
=rsMV
-----END PGP SIGNATURE-----

-- 
You received this message because you are subscribed to the Google Groups 
"Puppet Developers" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/puppet-dev?hl=en.

Reply via email to