updated document for foldl (support dim)