parse-bool ( data -- ? )


Vocabulary
tnetstrings.private

Inputs and outputs
dataan object
?an object


Definition


: parse-bool ( data -- ? )
{
{ "true" [ t ] }
{ "false" [ f ] }
[ "Invalid bool: %s" sprintf throw ]
} case ;