implement a recursive-on-data seq using map-indexed
test f5-seq