query
On this page

boolToYesNo

lib.trivial.boolToYesNo

Docs pulled from | This Revision | about 1 hour 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

Noogle detected

Aliases

Implementation

The following is the current implementation of this function.

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