e) and e( (array max and min) implementation (code snippet)
A stack-oriented programming language suitable for code golfing
Status: Alpha
Brought to you by:
aditsu
Please add this code, this implements some of your planned features.
add(new Op1("e)") { @Override protected Object calc(final CJam x, final Object a) { if (!isList(a)) { throw fail(a); } final List<?> l = toList(a); return Collections.max(l); } }); add(new Op1("e(") { @Override protected Object calc(final CJam x, final Object a) { if (!isList(a)) { throw fail(a); } final List<?> l = toList(a); return Collections.min(l); } });