Re: circR

2016-03-09 Thread Mike
cool, i will replace > On 9 марта 2016 г., at 10:22, Alexander Burger wrote: > > Hi Mike, > >> Works as circular list and after reset can count again from the beginning

Re: circR

2016-03-09 Thread Alexander Burger
come. I think you could make it a lot simpler. Instead of keeping a count and the length, you can keep the whole list: (de circR ("Var" Lst) (set "Var" (cons (apply circ Lst) Lst)) ) This works because neither (apply circ Lst) nor the later 'pop's are destructiv

circR

2016-03-08 Thread Mike Pechkin
hi all, I've create cool abstraction. Works as circular list and after reset can count again from the beginning. Used in Threefish implementation. Usage example: http://pastebin.com/dwSiNQgu Code: