io_lib:write/1 question

Yurii A. Rashkovskii yrashk@REDACTED
Tue Mar 5 16:27:30 CET 2002


I found a way to solve it, thank you.

-- 
Best regards,              
Yurii (http://yar.com.ua/)



> -----Original Message-----
> From: owner-erlang-questions@REDACTED [mailto:owner-erlang-
> questions@REDACTED] On Behalf Of Yurii A. Rashkovskii
> Sent: Tuesday, March 05, 2002 4:36 PM
> To: 'Thomas Lindgren'
> Cc: erlang-questions@REDACTED
> Subject: RE: io_lib:write/1 question
> 
> > In your example, you probably need to use lists:flatten/1
> > on the list returned by io_lib:write/1.
> >
> > (Such a non-flat list is often called an "io_list" or "io_list()",
> > by the way, since many io-functions can take them as arguments.)
> 
> It works if term is a list (string). But if term contains a list (for
> example, {error, errorreason, Reason}, where Reason is list)? What can
> you advise?




More information about the erlang-questions mailing list