Ruby - Functional Patterns in Ruby
Identify the error in this Ruby function intended to be pure:
def increment(x) @count += 1 x + 1 end
def increment(x) @count += 1 x + 1 end
15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions