-
Notifications
You must be signed in to change notification settings - Fork 11
Comparisons
Wheatwizard edited this page Apr 18, 2018
·
11 revisions
Each of these comparisons takes values off the stack and leaves either a 1
or a 0
on the stack. For shorter versions of these that don't meet these requirements see the section at the bottom.
({}[{}])((){[()](<{}>)}{})
({}[{}])({(<{}>)()}{})
Courtesy of H.PWiz
To get an equals or not equals that doesn't destroy the values it is comparing use (({}[({})])<({}({}))>)
instead of ({}[{}])
.
([([{}(())])](<>)){({}())<>}{}{((<{}>))<>{}}{}<>{}
([({}[(())])](<>)){({}())<>}{}{((<{}>))<>{}}{}<>{}
([([{}]<(())>)](<>)){({}())<>}{}{((<{}>))<>{}}{}<>{}
([({}<(())>)](<>)){({}())<>}{}{((<{}>))<>{}}{}<>{}
Courtesy of MegaTom
({}[{}])
Results in 0 if they are equal some other number otherwise.