cycle_enum = (0..1).cycle p cycle_enum.nextp cycle_enum.nextp cycle_enum.nextp cycle_enum.next
Standard input is empty
0 1 0 1
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!