Rotating A List

Jayson Vantuyl kagato@REDACTED
Wed Dec 16 01:21:58 CET 2009


I recently did some attended SF Erlounge, which was quite a nice event.  In addition to watching an excellent presentation on Erlang in the GitHub rebuild, I also fielded a few questions from some of the newer people.  One of them had a pretty simple request:

* manage a list
* pull items off the front, but rotate them to the back

This seemed interesting but simple, so I wrote put a version together to demonstrate for him.  Figuring that sharing is caring, I blogged it to.  You can read it here:

http://needlesslymessianic.com/2009/12/15/gen_server-example

Hopefully this is useful for people.  Have a lot of fun, and special thanks to Tipin Chang for the idea.

-- 
Jayson Vantuyl
kagato@REDACTED







More information about the erlang-questions mailing list