home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
ftp.cs.arizona.edu
/
ftp.cs.arizona.edu.tar
/
ftp.cs.arizona.edu
/
icon
/
historic
/
v941.tgz
/
icon.v941src.tar
/
icon.v941src
/
ipl
/
progs
/
applyfnc.icn
< prev
next >
Wrap
Text File
|
2000-07-29
|
758b
|
31 lines
############################################################################
#
# File: applyfnc.icn
#
# Subject: Program to apply function to lines of a file
#
# Author: Ralph E. Griswold
#
# Date: November 25, 1996
#
############################################################################
#
# This file is in the public domain.
#
############################################################################
#
# This program applies a function specified on the command line to the
# lines of a file.
#
############################################################################
procedure main(args)
local func
func := args[1] | stop("*** no function specified")
while args[1] := read() do
every write(func ! args)
end