adds folded_int:consume/1 function and documentation