Ruby - Variables and Data Types
Given a list of strings, how can you convert them to symbols efficiently in Ruby?
names = ["alice", "bob", "carol"]
symbols = ?Given a list of strings, how can you convert them to symbols efficiently in Ruby?
names = ["alice", "bob", "carol"]
symbols = ?15+ quiz questions · All difficulty levels · Free
Free Signup - Practice All Questions