Skip to content

Commit

Permalink
resolved isempty() overloaded builtin
Browse files Browse the repository at this point in the history
  • Loading branch information
lslezak committed Jan 24, 2013
1 parent c985bad commit ad63c7d
Showing 1 changed file with 7 additions and 15 deletions.
22 changes: 7 additions & 15 deletions src/ruby/ycp/builtins.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,13 @@ def self.foreach
raise "Builtin foreach() is not implemented yet"
end

# - Returns whether the map m is empty.
# - Returns whether the string s is empty.
# - Returns whether the list l is empty.
def self.isempty
raise "Builtin isempty() is not implemented yet"
end


###########################################################
# YCP Byteblock Builtins
Expand Down Expand Up @@ -144,11 +151,6 @@ def self.flatten
raise "Builtin flatten() is not implemented yet"
end

# Returns whether the list l is empty.
def self.isempty
raise "Builtin isempty() is not implemented yet"
end

module List
# Reduces a list to a single value.
def self.reduce
Expand Down Expand Up @@ -277,11 +279,6 @@ def self.haskey
raise "Builtin haskey() is not implemented yet"
end

# Returns whether the map m is empty.
def self.isempty
raise "Builtin isempty() is not implemented yet"
end

# Select a map element (deprecated, use MAP[KEY]:DEFAULT)
def self.lookup
raise "Builtin lookup() is not implemented yet"
Expand Down Expand Up @@ -499,11 +496,6 @@ def self.findlastof
raise "Builtin findlastof() is not implemented yet"
end

# Returns whether the string s is empty.
def self.isempty
raise "Builtin isempty() is not implemented yet"
end

# issubstring() YCP built-in
# searches for a specific string within another string
def self.issubstring string, substring
Expand Down

0 comments on commit ad63c7d

Please sign in to comment.