Sha256: 35db6f82db99128f0b391b85b186729ab37cd5ba41fac323971a1bc0ce60e117
Contents?: true
Size: 257 Bytes
Versions: 24
Compression:
Stored size: 257 Bytes
Contents
# frozen_string_literal: true require 'forwardable' require 'set' Array.class_eval do # @return [Boolean] def overlaps?(other) !(self & Array(other)).empty? end end Set.class_eval do extend Forwardable def_delegators :to_a, :overlaps? end
Version data entries
24 entries across 24 versions & 2 rubygems