Recently, I have tried to work using APL but have had difficulty conceptualizing it. For instance, let's say I want to make a program g<-pollard x, where the function computes if a number x is prime or factorable through the Pollard-Rho method.
I know the method itself, but I don't know where to start actually integrating it into APL. Should I start by creating an entirely new function f(x) for use in this function, or should I include everything in the code? How would I go about saving the x from the previous run to use for the next run? Note that I'm not asking for an entire program, just some recommendations to get me started.