Method: Functional::Tuple#diff
- Defined in:
- lib/functional/tuple.rb
#diff(other) ⇒ Functional::Tuple Also known as: -
Returns a new tuple that is a copy of the original tuple, removing any items that also appear in other. The order is preserved from the original tuple.
117 118 119 |
# File 'lib/functional/tuple.rb', line 117 def diff(other) Tuple.new(@data - other.to_a) end |