boolToString
lib.boolToString
Docs pulled from | This Revision | 13 minutes ago
Convert a boolean to a string.
This function uses the strings "true" and "false" to represent
boolean values. Calling toString
on a bool instead returns "1"
and "" (sic!).
Inputs
b
-
1. Function argument
Type
boolToString :: bool -> string
Noogle detected
Implementation
The following is the current implementation of this function.
boolToString = b: if b then "true" else "false";