arc> ($.shuffle '(1 2 3)) sort: contract violation expected: list? given: '(1 2 3 . nil) context...: /home/agaram/.local/racket/collects/racket/private/list.rkt:43:2: sort7 /home/agaram/Desktop/s/anarki/ac.scm:1215:4
It seems the problem with Anarki is that Arc's lists are terminated with the symbol 'nil rather than Racket's null. So you have to convert from Arc lists to Racket lists (and back again). Here is the relevant code:
https://github.com/arclanguage/anarki/blob/0c4eb66c162f973e7...
-----