« Return to Thread: list vs. atom

list vs. atom

by aminagho :: Rate this Message:

Reply to Author | View in Thread

what is the best way to distinguish atoms and lists in haskell?
I mean How I can find out the variable is List or atom.
I know we can use :t to define type but  I cannot use this.
I have to do it dynamically in my program.
Thanks a lot for your attention.

 « Return to Thread: list vs. atom