list.lua: add list methods.