I am wondering how can I ask ghci to show an infinite list wisely.
When I type

*fst ([1..],[1..10])*

The result is what as you may guess

*1,2,3,4,...*(continues to show, cut now)

How could I may ghci show

*[1..]*

this wise way not the long long long list itself?

Yi
_______________________________________________
Haskell-Cafe mailing list
Haskell-Cafe@haskell.org
http://www.haskell.org/mailman/listinfo/haskell-cafe

Reply via email to