[erlang-questions] guard sequence for string?
Samuel Rivas
samuelrivas@REDACTED
Tue Jan 30 10:07:56 CET 2007
jm wrote:
> Is there a guard sequence to test if a supplied parameter is a ascii
> string, ie, is_string, the same as there is is_integer? I check the docs
> and am unable to find anything. I tried is_list() but this doesn't seem
> to do what I want (it was a long shot). So what's the stardard approach
> here?
Well, it is not as good as one would like, but you have
io_lib:char_list/1. Sadly, you cannot use it as a guard.
Regards
--
Samuel
More information about the erlang-questions
mailing list