author | oheimb |
Wed, 18 Dec 1996 15:16:13 +0100 | |
changeset 2445 | 51993fea433f |
parent 1479 | 21eb5e156d91 |
child 2569 | 3a8604f408c9 |
permissions | -rw-r--r-- |
1274 | 1 |
(* |
2 |
ID: $Id$ |
|
1479 | 3 |
Author: Franz Regensburger |
1274 | 4 |
Copyright 1993 Technische Universitaet Muenchen |
5 |
||
6 |
Additional constants for stream |
|
7 |
*) |
|
8 |
||
9 |
Stream2 = Stream + |
|
10 |
||
11 |
consts |
|
12 |
||
1479 | 13 |
smap :: "('a -> 'b) -> 'a stream -> 'b stream" |
1274 | 14 |
|
15 |
defs |
|
16 |
||
17 |
smap_def |
|
18 |
"smap == fix`(LAM h f s. stream_when`(LAM x l.scons `(f`x) `(h`f`l)) `s)" |
|
19 |
||
20 |
||
21 |
end |
|
22 |
||
23 |
||
24 |
(* |
|
1479 | 25 |
smap`f`UU = UU |
1274 | 26 |
x~=UU --> smap`f`(scons`x`xs) = scons `(f`x) `(smap`f`xs) |
27 |
||
28 |
*) |
|
29 |