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
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
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: