MyFunc.java 448 B

12345678910111213141516171819202122
  1. import gnu.mapping.*;
  2. import gnu.math.*;
  3. import gnu.expr.SourceName;
  4. public class MyFunc extends Procedure2
  5. {
  6. private Object arg0;
  7. @SourceName(name="my-func-1")
  8. public static final MyFunc myfunc = new MyFunc("my-func-1", IntNum.make(1));
  9. public MyFunc(String name, Object arg0)
  10. {
  11. super(name);
  12. this.arg0 = arg0;
  13. }
  14. public Object apply2 (Object arg1, Object arg2)
  15. {
  16. return gnu.lists.LList.list3(arg0, arg1, arg2);
  17. }
  18. }