Re: Should to_number return a sequence?

new topic     » goto parent     » topic index » view thread      » older message » newer message

I slowed down reading the docs. I see what I missed the first time. This seems to do what I need now.

Thanks for your help.

include std/convert.e 
include std/sequence.e 
 
if atom(to_number("(", -1)) then 
    puts(1, "to_number returned an atom\n") 
end if 
 
if sequence(to_number("(", -1)) then 
    puts(1, "to_number returned a sequence\n") 
end if 
 

$ eui test_to_number.ex 
to_number returned a sequence 

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu