Commit | Line | Data |
---|---|---|
674e1c56 VS |
1 | public class MalLessEqual extends MalSubr |
2 | { | |
3 | fun MalObject call(MalObject args[]) | |
4 | { | |
5 | args[0]$MalInt @=> MalInt a; | |
6 | args[1]$MalInt @=> MalInt b; | |
7 | ||
8 | if( a.value() <= b.value() ) | |
9 | { | |
f823ec25 | 10 | return Constants.TRUE; |
674e1c56 VS |
11 | } |
12 | else | |
13 | { | |
f823ec25 | 14 | return Constants.FALSE; |
674e1c56 VS |
15 | } |
16 | } | |
17 | } |