Skip to content

Latest commit

 

History

History
15 lines (11 loc) · 237 Bytes

array_of_strings_symbols.md

File metadata and controls

15 lines (11 loc) · 237 Bytes

Array of Strings or Symbols

Array of Strings

%w[Michael Jonh Mary Stuart]
=> ["Michael", "Jonh", "Mary", "Stuart"]

Array of Symbols

%i[Michael Jonh Mary Stuart]
=> [:Michael, :Jonh, :Mary, :Stuart]