|
dave@4
|
1 |
/* |
|
dave@4
|
2 |
* Copyright (c) 2008 Dave Dribin |
|
dave@4
|
3 |
* |
|
dave@4
|
4 |
* Permission is hereby granted, free of charge, to any person |
|
dave@4
|
5 |
* obtaining a copy of this software and associated documentation |
|
dave@4
|
6 |
* files (the "Software"), to deal in the Software without |
|
dave@4
|
7 |
* restriction, including without limitation the rights to use, copy, |
|
dave@4
|
8 |
* modify, merge, publish, distribute, sublicense, and/or sell copies |
|
dave@4
|
9 |
* of the Software, and to permit persons to whom the Software is |
|
dave@4
|
10 |
* furnished to do so, subject to the following conditions: |
|
dave@4
|
11 |
* |
|
dave@4
|
12 |
* The above copyright notice and this permission notice shall be |
|
dave@4
|
13 |
* included in all copies or substantial portions of the Software. |
|
dave@4
|
14 |
* |
|
dave@4
|
15 |
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, |
|
dave@4
|
16 |
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF |
|
dave@4
|
17 |
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND |
|
dave@4
|
18 |
* NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS |
|
dave@4
|
19 |
* BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN |
|
dave@4
|
20 |
* ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN |
|
dave@4
|
21 |
* CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
|
dave@4
|
22 |
* SOFTWARE. |
|
dave@4
|
23 |
*/ |
|
dave@0
|
24 |
|
|
dave@5
|
25 |
#import "DDRange.h" |
|
dave@5
|
26 |
|
|
dave@0
|
27 |
int main (int argc, const char * argv[]) |
|
dave@0
|
28 |
{ |
|
dave@0
|
29 |
NSAutoreleasePool * pool = [[NSAutoreleasePool alloc] init]; |
|
dave@0
|
30 |
|
|
dave@0
|
31 |
for (id _i_ in [DDRange from: 1 to: 20 stride: 3]) |
|
dave@0
|
32 |
{ |
|
dave@12
|
33 |
NSInteger i = (NSInteger) _i_; |
|
dave@12
|
34 |
printf("%ld\n", (long) i); |
|
dave@0
|
35 |
} |
|
dave@0
|
36 |
|
|
dave@0
|
37 |
[pool drain]; |
|
dave@0
|
38 |
return 0; |
|
dave@0
|
39 |
} |