foldl.idx implemented

need to add more tests, but so far so good