Enumerable implementation each, take and take_while
base API demo