fixed syntax error in R.foldl.idx example