Changes between Version 2 and Version 3 of StreamType
- Timestamp:
- 02/02/09 05:13:31 (16 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
StreamType
v2 v3 3 3 class Example 4 4 5 def main is shared6 pass5 def main is shared 6 pass 7 7 8 def bill(customers as Customer*)9 for c in customers10 c.billIfNeeded8 def bill(customers as Customer*) 9 for c in customers 10 c.billIfNeeded 11 11 12 def foo(ints as int*)13 t = for i in ints where i > 014 print t12 def foo(ints as int*) 13 t = for i in ints where i > 0 14 print t 15 15 16 def bar(ints as int*)17 t = List<of int>(t)18 t.sort19 t.reverse20 print t16 def bar(ints as int*) 17 t = List<of int>(t) 18 t.sort 19 t.reverse 20 print t 21 21 }}} 22 22 * The general form of a stream type is "foo*" where "foo" is the element type.