Skip to main content
bool

bool

1 7.2
A value that can be only true or false
  • noun
  • /buːl/
  • Specialized
translation icon : booleano
  • So arrays, dictionaries, ints, bools, double S, those are all structs.

Examples

  • When you do filter f xs, it just applies the function f of type a -> Bool on all the elements of the list, removing those for which this function returns False.

    Blog text (3)
  • bool main(void);

    Blog text (20)
  • Return either void or maybe bool to indicate success.

    Blog text (6)
  • It actually returns a bool and it's text field should return.

  • This is the idea that prop equals bool, and what's bool is a type.

  • Another option would be to use displacement as an alternative to bools.

    Blog text (28)
  • In programming, a bool can only be either true or false.

  • You can use a bool to control the flow of your application based on user input.

  • The function returns a bool that determines whether the operation was successful.

Synonyms

boolean
vsbool
  • Specialized
1 4.1

A value that can be true or false

is the shortened programming name often used in code

Antonyms

Able to have more than one value or meaning

Surface Forms

bool singular
bools plural

Etymology

A bool is named after George Boole and the idea of Boolean logic. A helpful way to remember a bool is that it can hold only 'true' or 'false', the two answers in that system.