Skip to content

Instantly share code, notes, and snippets.

@apmckinlay
Created September 11, 2012 19:38
Show Gist options
  • Save apmckinlay/3701451 to your computer and use it in GitHub Desktop.
Save apmckinlay/3701451 to your computer and use it in GitHub Desktop.
old way of implementing built-in methods
public static class EqualRange extends SuMethod2 {
{ params = new FunctionSpec(array("value", "block"), Boolean.FALSE); }
@Override
public Object eval2(Object self, Object a, Object b) {
Range r = ((SuContainer) self).equalRange(a, b);
return SuContainer.of(r.left, r.right);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment