// //------------------ DOK FILE -------------------------------------------------- +Header boolLib =pkg bios =title Booleans =short true & false =desc Booleans are mostly used for conditions. // // //------------------ PROTO ----------------------------------------------------- Bool +Proto Bool =type Bool =mode sum =pkg bios =impl native =link =desc Boolean type // // //------------------ PROTO ----------------------------------------------------- false +Proto false =type Bool =mode empty constructor =pkg bios =impl native =link =desc Not much to say about false, except that nil is also considered as false. // // //------------------ PROTO ----------------------------------------------------- true +Proto true =type Bool =mode empty constructor =pkg bios =impl native =link =desc Not much to say about true. // // //------------------ PROTO ----------------------------------------------------- strFromBool +Proto strFromBool =type fun Bool -> Str =mode function =pkg bios =impl mcy =link =desc This function converts a boolean into a printable string. > strFromBool (true) >-> Str: "true" > strFromBool (false) >-> Str: "false" > strFromBool (nil) >-> Str: nil // +arg input =type Bool =desc A boolean // +arg result =type Str =desc The string representation of the boolean.