Logo

Programming-Idioms

This language bar is your friend. Select your favorite languages!
  • Clojure

Idiom #260 Create an empty list of strings

Declare a new list items of string elements, containing zero elements

(def items '())
#include <vector>
#include <string>
std::vector<std::string> items;

New implementation...
< >
programming-idioms.org