rename sequences() to partition()
replace iterable() function with loop()