born Posted January 7, 2018 Share Posted January 7, 2018 Hi, how can I convert binaries to intervals? (gen-binary-euclidean 1 14 8 8) => (1 0 1 1 0 1 0 1 0 1 1 0 1 0) Each set of (1 0) shoud be replaced by 2 resulting in '(2 1 2 2 2 1 2 2). Thanks for help. Achim Quote Link to comment Share on other sites More sharing options...
opmo Posted January 7, 2018 Share Posted January 7, 2018 PATTERN-MAP (pattern-map '((1 0) 2) (gen-binary-euclidean 1 14 8 8)) => (2 1 2 2 2 1 2 2) torstenanders and loopyc 1 1 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.