home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
OS/2 Shareware BBS: 10 Tools
/
10-Tools.zip
/
lifeos2.zip
/
LIFE-1.02
/
TESTS
/
LF
/
APPLY.LF
< prev
next >
Wrap
Text File
|
1996-06-04
|
237b
|
16 lines
quadruple -> *(2=>4).
pick_arg({5;3;7}).
pick_func({quadruple;fact}).
test :- R=F(A),
pick_arg(A),
pick_func(F),
write( 'function ',F,
' applied to argument ',A,
' is ', R),
nl,
fail.
fact(0) -> 1.
fact(N:int) -> N*fact(N-1).