On Dec 2, 2010, at 1:18 AM, Peter Meier wrote:

> -----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.

Ah - yes.  I see, I take my complaint back, then.

> 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?



-- 
Progress isn't made by early risers. It's made by lazy men trying to
find easier ways to do something.     --Robert Heinlein
---------------------------------------------------------------------
Luke Kanies  -|-   http://puppetlabs.com   -|-   +1(615)594-8199




-- 
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