Just wrote this code, I use it to keep the size down on records in large mnesia tables. Enjoy /klacke -------------- next part -------------- An embedded and charset-unspecified text was scrubbed... Name: ibits.erl URL: <http://erlang.org/pipermail/erlang-questions/attachments/20050719/9fd59739/attachment.ksh>