Enumerable partition always takes the block variable in the array, I need to the encoding in the array.

If I work with the pattern after using partition then we need to call .encoding on all the elements everywhere.