WordGarden.io
Back to search

singleton

C2
noun

Pronunciation

UK

  • /sˈɪŋɡəltən/

US

  • /ˈsɪŋɡəltən/

Description

A singleton is not just something alone; it is the only one of its kind in a given place or situation. Picture one snowflake landing on a dark coat and standing out because there is just one. In computer science, a singleton is a design pattern that allows only one instance of a class, like a single gatekeeper that the whole program uses. In other fields, the word can also mean one item that appears by itself, such as one card of a suit in a hand or a set with exactly one member.

Examples

  1. 1

    Birth statistics

    The study looked only at singleton births, not twins or triplets.

    • Domain

      singleton birth

      a birth with one baby

  2. 2

    Corpus data

    In the dataset, rare words that appear only once are marked as singletons.

  3. 3

    Software design

    The app uses a singleton for the database connection, so every part of the system shares the same instance.

    • Domain

      singleton

      a single shared object in a program

Forms and spellings

2 forms open this card.

Main spelling

  • singletonnoun

Forms

  • singletonspluralnoun