the newline _character_?

Richard Carlsson <>
Thu Nov 21 11:05:09 CET 2002


On Thu, 21 Nov 2002, Bengt Kleberg wrote:

> characters in erlang are written as $<the-character>. ie ';' is $; .
> how do i write newline? not in a string, that would be "\n", but as a
> character?

Don't tell me you didn't try this:

	$\n

By the way, a single space character can be produced with

	$\s

which is better than writing an actual space character after the $,
since that could get removed by accident by an editor.

> moreover, is there is_whitespace() function is some module?

I don't think so.

	/Richard

Richard Carlsson ()   (This space intentionally left blank.)
E-mail: 	WWW: http://user.it.uu.se/~richardc/




More information about the erlang-questions mailing list