An "is_string" BIF?

Corrado Santoro csanto@REDACTED
Thu Mar 10 09:02:08 CET 2005


Dear all,

I need an "is_string" function, something that behaves as follows:

is_string ("ABC") -> true
is_string ([65,66,67]) -> true
is_string (['1','2',three]) -> false
...

I know that I could do that by defining a suitable function, but I would 
like to use it in a guard. Is there a sort of BIF?

Cheers,
--Corrado

-- 
======================================================
Eng. Corrado Santoro, Ph.D.

University of Catania - Engineering Faculty
Department of Computer Science and
Telecommunications Engineering
Viale A. Doria, 6 - 95125 CATANIA (ITALY)

Tel: +39 095 7382380           Fax: +39 095 7382397
      +39 095 7382365
      +39 095 7382364

EMail: csanto@REDACTED
Personal Home Page:
             http://www.diit.unict.it/users/csanto

NUXI Home Page:
             http://nuxi.iit.unict.it
======================================================




More information about the erlang-questions mailing list