home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lifeos2.zip
/
LIFE-1.02
/
TESTS
/
LF
/
MODULE_T.LF
< prev
next >
Wrap
Text File
|
1996-06-04
|
470b
|
25 lines
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
module("lists")?
public(app,rev)?
app(L,[]) -> L.
app(L,[H|T]) -> [H|app(L,T)].
rev([]) -> [].
rev([H|T]) -> app([H],rev(T)).
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
module("jolly")?
open("import")?
public(app)?
dynamic(app)?
app([],L) -> L.
import_clauses(for => lists#app,
replacing => [(lists#app,app)])?
app(X,Y) -> (X,Y).