Well I have been struggling to find/create a circular buffer(list to be exact) on erlang, but I’m still not satisfied, I have hacked this:
[_P | T ] = lists:reverse(O),
N = [ V | lists:reverse(T)],
To insert V in the head and remove P from the tail. But can you see the problem with that: [...]





