Questions Concepts
GitHub icon


Sets - language feature

< >
Example from JavaScript, TypeScript:
set = new Set() set.add("foo")
Example from YAML, YAMP:
# Explicitly typed set. baseball players: !!set ? Mark McGwire ? Sammy Sosa ? Ken Griffey # Flow style baseball teams: !!set { Boston Red Sox, Detroit Tigers, New York Yankees }

Languages with Sets include JavaScript, TypeScript, YAML, EDN, YAMP

Languages without Sets include Bash

This question asks: Does the language come with a Set data structure?

Read more about Sets on the web: 1.

HTML of this page generated by Features.ts

View source

- Build the next great programming language Search Add Language Features Creators Resources About Blog Acknowledgements Queries Stats Sponsor Traffic Traffic Today Day 305 Logout