You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
419 B
17 lines
419 B
import { wrapFunc, trueValue, falseValue } from "cumlisp"
|
|
|
|
export default {
|
|
equals: wrapFunc("equals", 2, (args) => {
|
|
if (args[0] === args[1]) return trueValue
|
|
return falseValue
|
|
}),
|
|
inequals: wrapFunc("inequals", 2, (args) => {
|
|
if (args[0] === args[1]) return falseValue
|
|
return trueValue
|
|
}),
|
|
truthy: wrapFunc("truthy", 1, (args) => {
|
|
if (args[0] === trueValue) return trueValue
|
|
return falseValue
|
|
})
|
|
}
|