Skip to content

Commit f128886

Browse files
committed
---
yaml --- r: 2730 b: refs/heads/master c: f6beec6 h: refs/heads/master v: v3
1 parent b5b4304 commit f128886

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: bac68e4af3592dfcd6867fb8a73d2999daff744f
2+
refs/heads/master: f6beec6c43a720cded80cb2769b295882b94fdc2

trunk/src/lib/list.rs

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -25,15 +25,12 @@ fn foldl[T,U](&list[T] ls, &U u, fn(&T t, &U u) -> U f) -> U {
2525
alt(ls) {
2626
case (cons[T](?hd, ?tl)) {
2727
auto u_ = f(hd, u);
28-
// FIXME: should use 'be' here, not 'ret'. But parametric
29-
// tail calls currently don't work.
30-
ret foldl[T,U](*tl, u_, f);
28+
be foldl[T,U](*tl, u_, f);
3129
}
3230
case (nil[T]) {
3331
ret u;
3432
}
3533
}
36-
3734
fail; // TODO: remove me when exhaustiveness checking works
3835
}
3936

@@ -43,9 +40,7 @@ fn find[T,U](&list[T] ls,
4340
case (cons[T](?hd, ?tl)) {
4441
alt (f(hd)) {
4542
case (none[U]) {
46-
// FIXME: should use 'be' here, not 'ret'. But parametric
47-
// tail calls currently don't work.
48-
ret find[T,U](*tl, f);
43+
be find[T,U](*tl, f);
4944
}
5045
case (some[U](?res)) {
5146
ret some[U](res);

0 commit comments

Comments
 (0)