3 ms·
Eh, there's examples of every permutation: ;; Lisp (setf a (xor b c)) ;; Kanren ;; Unification instead of mutation. ;; Therefore these are equivalent
by tmtvl 2y ago
Eh, there's examples of every permutation:
;; Lisp
(setf a (xor b c))
;; Kanren
;; Unification instead of mutation.
;; Therefore these are equivalent:
(== a (xor b c))
(== (xor b c) a)
# Contrived untested Raku example
$b ^^ $c ==> my $a;
% Amberjack
b xor c -> a
// Java
var a = b ^ c;
- librasteve 2y agotests the raku... my $b = 42; my $c = False; $b ^^ $c ==> my $a; say $a; #[42] ^^ yep