then
then is fork for method chain.
require 'then'
[1,2,3,3].then{|list|
p list
p list.reverse
}.uniq.then{ |list|
p list
p list.reverse
}
# [1, 2, 3, 3]
# [3, 3, 2, 1]
# [1, 2, 3]
# [3, 2, 1]
Copyright
Copyright © 2011 hitode909. See LICENSE.txt for further details.