Ruby: undefined method 'to_set' for array?
Ruby: undefined method 'to_set' for array? Problem Description: I have a large array of chars: input = ["p", "f", "p", "t" … "g"] I am attempting to take a slice of the array and convert it into a set: sub = input.slice(0, 4).to_set But the interpreter bombs: undefined method `to_set’ for ["p", "f", "p", "t"]:Array … Read more