query
On this page

boolToYesNo

lib.boolToYesNo

Docs pulled from | This Revision | 9 minutes ago


Converts a boolean to a string.

This function uses the strings "yes" and "no" to represent boolean values.

Inputs

b

The boolean to convert

Type

boolToYesNo :: bool -> string
(lib.trivial.boolToYesNo)

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

boolToYesNo = b: if b then "yes" else "no";