Skip to content

Commit

Permalink
added setcontains() YCP built-in
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 24, 2013
1 parent 5a626ce commit c45612a
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/ruby/ycp/builtins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -141,5 +141,11 @@ def self.contains list, value
return nil if list.nil? || value.nil?
list.include? value
end

# setcontains() YCP built-in
def self.setcontains list, value
# simply call contains(), setcontains() is just optimized contains() call
contains list, value
end
end
end

0 comments on commit c45612a

Please sign in to comment.