diff options
| author | forsyth <forsyth@vitanuova.com> | 2011-04-07 10:04:31 +0100 |
|---|---|---|
| committer | forsyth <forsyth@vitanuova.com> | 2011-04-07 10:04:31 +0100 |
| commit | 09fa9b42130335ddb8876b9be05f780093519864 (patch) | |
| tree | 502762ed084531ebd86c1aff3bfb112d36f221dc /module/lists.m | |
| parent | c2ef9233feb49e4dc90f4f58fc499eb2c607bf7d (diff) | |
20110407-1004
Diffstat (limited to 'module/lists.m')
| -rw-r--r-- | module/lists.m | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/module/lists.m b/module/lists.m index 5c0678ff..fb6f83ab 100644 --- a/module/lists.m +++ b/module/lists.m @@ -11,7 +11,9 @@ Lists: module concat: fn[T](l: list of T, l2: list of T): list of T; combine: fn[T](l: list of T, l2: list of T): list of T; reverse: fn[T](l: list of T): list of T; - last: fn[T](l: list of T): T; + last: fn[T](l: list of T): T; + find: fn[T](x: T, l: list of T): list of T + for { T => eq: fn(a, b: T): int; }; delete: fn[T](x: T, l: list of T): list of T for { T => eq: fn(a, b: T): int; }; pair: fn[T1, T2](l1: list of T1, l2: list of T2): list of (T1, T2); |
