Suppose I have a function f(), and a list L = [x1,x2,...]. Is there an elegant way to map f onto L, i.e. compute [f(x1),f(x2),...]? I thought something like that was in the IPL, but if so, I can't find it.
ListPDCO from pdco.icn is elegant if it does not consume too much time. For example:
link pdco, ximage
procedure main()
every put(L:=[], 1 to 10)
write(ximage ( ListPDCO{ (!L)^2 } ) )
endObviously, there are no problems if f has arguments.
----
Kazimir Majorinc, Zagreb, Croatia
