module Trees::Binary::SearchHelpers
Public Instance Methods
include?(value)
click to toggle source
# File lib/trees/binary/search_heplers.rb, line 4 def include?(value) case data <=> value when 1 then left.include? value when -1 then right.include? value when 0 then true end end