Skip to content

Commit 602e67b

Browse files
committed
c
1 parent e176b02 commit 602e67b

File tree

3 files changed

+13
-4
lines changed

3 files changed

+13
-4
lines changed

BOOTSTRAP/cli.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27379,7 +27379,6 @@ return ({({({({({({({({({({({(lsts_SB_parse_SB_expect_CL__LT_Arrow_LT_Nil_GT__LT
2737927379
});
2738027380
({uuid__00000000000994dd=(tail_CL__LT_Arrow_LT_List_LT_Token_GT__GT__LT_List_LT_Token_GT__GT__GT_(uuid__00000000000994dd));({});});
2738127381
});
27382-
(fail_CL__LT_Arrow_LT_Never_GT__LT_SmartString_GT__GT_(uuid__00000000000994fd));
2738327382
});
2738427383
uuid__00000000000994dd;
2738527384
});}

PLATFORM/C/LIB/collections.lsts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -200,8 +200,8 @@ let .enumerate(i: Iterator<t>): EnumerateIterator<i> = (
200200
);
201201

202202
type CollectionIteratorBase<c+Collection<t>> = CollectionIteratorBase { coll: c, idx: U64 };
203-
type CollectionIteratorBase<c+Collection<t>> => Iterator<t>;
204-
type CollectionIteratorBase<c+Collection<t>> => IteratorRemaining;
203+
type CollectionIteratorBase<Collection<t>> => Iterator<t>;
204+
type CollectionIteratorBase<Collection<t>> => IteratorRemaining;
205205

206206
let .remaining(self: CollectionIteratorBase<c+Collection<t>>): U64 = (
207207
self.coll.length() - self.idx
@@ -211,7 +211,7 @@ let .skip(self: CollectionIteratorBase<c>, num: U64): CollectionIteratorBase<c>
211211
CollectionIteratorBase { self.coll, self.idx + num }
212212
);
213213

214-
let .next(p: CollectionIteratorBase<c+Collection<t>>[]): Maybe<t> = (
214+
let .next(p: CollectionIteratorBase<Collection<t>>[]): Maybe<t> = (
215215
let v = p[0];
216216
if v.idx < v.coll.length() {
217217
let val = v.coll[v.idx];

test.lsts

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
2+
import LIB/default.lsts;
3+
4+
let main(): Nil = (
5+
let list = [ 1_u64, 2_u64, 3_u64 ].unsafe-iter().collect();
6+
7+
for x in list.unsafe-iter() {
8+
print("\{x}\n");
9+
};
10+
);

0 commit comments

Comments
 (0)