For Programmers: Free Programming Magazines  


Home > Archive > APL > January 2005 > Distinguish primitive and defined functions inside an operator of









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Distinguish primitive and defined functions inside an operator of
Thomas Buchholz

2005-01-11, 3:55 pm

I wonder if there is a way in IBM APL2 for Windows to distinguish inside
a defined operator whether or not the operator was called with some
primitive function.

Since there is actually no fill function implemeted for the Each
operator I would like to mimic it using some defined operator E{<-}L(F
EACH)R. In the monadic case the result of EACH on an empty R would
therefore be E{<-}({rho}R){rho}{enclose}F{first}R if F is a primitive
function and E{<-}R if F is a defined one. (BTW: does the Mainframe
version really behave in that manner?)

Any ideas would be gratefully appreciated.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com