What about putting array.empty in object.d?
Jacob Carlborg
doob at me.com
Wed Mar 21 02:17:08 PDT 2012
On 2012-03-21 09:42, Nick Sabalausky wrote:
> "Jacob Carlborg"<doob at me.com> wrote in message
>> Sure, why not. Do we want an "any" function as well, that is the opposite?
>>
>
> I think "!array.empty" is plenty sufficient. Besides, there are other good
> uses of "any" that have been brought up before.
Actually I was thinking something like "any?" in Ruby:
http://www.ruby-doc.org/core-1.8.7/Enumerable.html#method-i-any-3F
--
/Jacob Carlborg
More information about the Digitalmars-d
mailing list