Lazy vs eager evaluation and double linked list building
问题 I can't sleep! :) I've written small program building double linked list in Haskell. The basic language's property to make it was lazy evaluation (see the bunch of code below). And my question is can I do the same in a pure functional language with eager evaluation or not? In any case, what properties eager functional language must have to be able to build such structure (impurity?)? import Data.List data DLList a = DLNull | DLNode { prev :: DLList a , x :: a , next :: DLList a } deriving