[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Standard Libraries:
- From: Doug Rogers <doug.rogers@...>
- Date: Fri, 18 Dec 2009 10:22:00 -0500
steve donovan wrote:
> On Fri, Dec 18, 2009 at 10:43 AM, Mark Hamburg <email@example.com> wrote:
> But here I would like to know what people feel about this, whether
> their expectation is that map is purely list-to-list, and that another
> function (map_iter) should be provided for sequence-to-sequence.
Can it be both? If the argument is a function, treat it as an iterator.
If it is a table, treat it as a list. If it is a userdata... uh, try
indexing  and if it works, treat it as a table, otherwise try __call?
Or dare I bring up __iter for userdata? :)
The information contained in this email transmission may contain proprietary and business
sensitive information. If you are not the intended recipient, you are hereby notified that
any review, dissemination, distribution or duplication of this communication is strictly
prohibited. Unauthorized interception of this e-mail is a violation of law. If you are not
the intended recipient, please contact the sender by reply email and immediately destroy all
copies of the original message.
Any technical data and/or information provided with or in this email may be subject to U.S.
export controls law. Export, diversion or disclosure contrary to U.S. law is prohibited.
Such technical data or information is not to be exported from the U.S. or given to any foreign
person in the U.S. without prior written authorization of Elbit Systems of America and the
appropriate U.S. Government agency.