7 ms·
> I built up a string of ascii 0's and 1's, sliced the string, and then converted back to integers. How about a list of integers: $ txr This is the TXR L
by kazinator 5y ago
> I built up a string of ascii 0's and 1's, sliced the string, and then converted back to integers.
How about a list of integers:
$ txr
This is the TXR Lisp interactive listener of TXR 274.
Quit with :quit or Ctrl-D on an empty line. Ctrl-X ? for cheatsheet.
This could be the year of the TXR desktop; I can feel it!
1> (digits 37)
(3 7)
2> (digits 37 2)
(1 0 0 1 0 1)
3> (reverse *2)
(1 0 1 0 0 1)
4> (mapcar (op - 1) *3)
(0 1 0 1 1 0)
5> (poly 2 *4)
22
:)
- TheDesolate0 5y ago