table: implement foldl and foldr
table: add transform