doc/cross/lambda [en]

All languages

Differences between version #5853 and #5854

21c21
< The ''Lambda'' class operates on ''Iterable''s.  "Iterables" are "typedefs", so any class that has an ''iterator'' method is by definition an "Iterable".  The ''Array'' and ''List'' classes are both ''Iterable'' since they have this method.  User defined classes can be ''Iterable''s as well by simply defining an appropriate ''iterator'' method inside the class.  This allows a great deal of flexibility in where Lambda methods can be utilized.
---
> The ''Lambda'' class operates on ''Iterable''s.  ''Iterable''s are ''typedefs'', so any class that has an ''iterator'' method is by definition an ''Iterable''.  The ''Array'' and ''List'' classes are both ''Iterable'' since they have this method.  User defined classes can be ''Iterable''s as well by simply defining an appropriate ''iterator'' method inside the class.  This allows a great deal of flexibility in where Lambda methods can be utilized.

	
Ver Date User Action
#15990 2013-02-20 12:13:29 shohei909 View | Diff
#12600 2012-02-23 18:40:24 cambiata View | Diff
#12599 2012-02-23 18:39:09 cambiata View | Diff
#10092 2011-02-02 08:51:23 AndyLi View | Diff
#10091 2011-02-02 08:29:17 AndyLi View | Diff
#10090 2011-02-02 08:28:26 AndyLi View | Diff
#6002 2009-05-18 21:09:16 ianxm View | Diff
#5998 2009-05-18 20:32:31 ianxm View | Diff
#5858 2009-04-29 14:31:38 ianxm View | Diff
#5855 2009-04-29 05:02:12 jjdonald View | Diff
#5854 2009-04-29 05:01:46 jjdonald View | Diff
#5853 2009-04-29 05:00:06 jjdonald View | Diff
#5851 2009-04-28 15:44:24 ianxm View | Diff
#5850 2009-04-28 15:43:26 ianxm View | Diff
#5844 2009-04-27 23:40:13 ianxm View | Diff
#5843 2009-04-27 23:36:47 ianxm View | Diff
#5842 2009-04-27 23:23:20 ianxm View | Diff
#5841 2009-04-27 20:24:18 ianxm View | Diff
#5840 2009-04-27 19:53:04 ianxm View | Diff
#5839 2009-04-27 19:43:11 ianxm View | Diff

Previous | Next