Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- takes a number of Callables and an :off flag indicating initial state - (1..15).toggle(* < 5, * > 10, * < 15) i # 1 2 3 4 11 12 13 14 - (1..15).toggle(:off, * > 2, * < 5, * > 10, * < 15) # 3 4 11 12 13 14
- Loading branch information