|
Hello, I've made a function that returns the nth factorial and I need to use it in a couple of different classes I'm writing. My question is... How do I do this? Inside a class I want to be able to do something like: //Instance method in a class to do some calculation -> MyClass.calc(100) calc { arg x; var a, b, c; a = someCalculationOnX * (6, 2)nthfactorial //Meaning 1 * 2 * 4 * 6 and nthfactorial is my custom function ^a; } Maybe the answer is really obvious, but I don't see how to do it. I would appreciate it very much if somebody can help me. gr. Michael Heb jij de nieuwe Messenger nog niet?! Download 'm hier |