parse-bool ( data -- ? )


Vocabulary
tnetstrings.private

Inputs
dataan object


Outputs
?an object


Definition


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