From adb1754e4dcbf61abb93ac7604aed4e8bca080a8 Mon Sep 17 00:00:00 2001 From: Patrick Walton Date: Wed, 3 Nov 2010 17:10:37 -0700 Subject: Move the option type to its own module --- src/lib/list.rs | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/lib/list.rs') diff --git a/src/lib/list.rs b/src/lib/list.rs index da8d3c0a..c6a67c71 100644 --- a/src/lib/list.rs +++ b/src/lib/list.rs @@ -1,7 +1,7 @@ -import util.option; -import util.some; -import util.none; +import std.option; +import option.some; +import option.none; // FIXME: It would probably be more appealing to define this as // type list[T] = rec(T hd, option[@list[T]] tl), but at the moment @@ -27,7 +27,7 @@ fn foldl[T,U](&list[T] ls, &U u, fn(&T t, U u) -> U f) -> U { } fn find[T,U](&list[T] ls, - (fn(&T) -> option[U]) f) -> option[U] { + (fn(&T) -> option.t[U]) f) -> option.t[U] { alt(ls) { case (cons[T](?hd, ?tl)) { alt (f(hd)) { -- cgit v1.2.3