<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/'><id>tag:blogger.com,1999:blog-32850121.post1635252836947494027..comments</id><updated>2007-12-03T16:38:40.719-08:00</updated><title type='text'>Comments on Programming Experiments: Haskell Stacks : Two Different Ways</title><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://progexpr.blogspot.com/feeds/1635252836947494027/comments/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32850121/1635252836947494027/comments/default'/><link rel='alternate' type='text/html' href='http://progexpr.blogspot.com/2006/11/haskell-stacks-two-different-ways.html'/><author><name>a</name><email>noreply@blogger.com</email></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>3</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-32850121.post-1012331162845775999</id><published>2007-12-03T16:38:00.000-08:00</published><updated>2007-12-03T16:38:00.000-08:00</updated><title type='text'>O(2n) is equivalent to O(n). The function runs in ...</title><content type='html'>O(2n) is equivalent to O(n). The function runs in time linearly proportional to the size of the list (n)&lt;BR/&gt;&lt;BR/&gt;;)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32850121/1635252836947494027/comments/default/1012331162845775999'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32850121/1635252836947494027/comments/default/1012331162845775999'/><link rel='alternate' type='text/html' href='http://progexpr.blogspot.com/2006/11/haskell-stacks-two-different-ways.html?showComment=1196728680000#c1012331162845775999' title=''/><author><name>dibblego</name><uri>http://www.blogger.com/profile/17206456907461293947</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://progexpr.blogspot.com/2006/11/haskell-stacks-two-different-ways.html' ref='tag:blogger.com,1999:blog-32850121.post-1635252836947494027' source='http://www.blogger.com/feeds/32850121/posts/default/1635252836947494027' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-32850121.post-1320919329983009486</id><published>2006-12-21T11:12:00.000-08:00</published><updated>2006-12-21T11:12:00.000-08:00</updated><title type='text'>Thanks for the info, ken. :)</title><content type='html'>Thanks for the info, ken. :)</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32850121/1635252836947494027/comments/default/1320919329983009486'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32850121/1635252836947494027/comments/default/1320919329983009486'/><link rel='alternate' type='text/html' href='http://progexpr.blogspot.com/2006/11/haskell-stacks-two-different-ways.html?showComment=1166728320000#c1320919329983009486' title=''/><author><name>Brian Olsen</name><uri>http://www.blogger.com/profile/14464312643618559084</uri><email>noreply@blogger.com</email><gd:extendedProperty xmlns:gd='http://schemas.google.com/g/2005' name='OpenSocialUserId' value='11805207881455645077'/></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://progexpr.blogspot.com/2006/11/haskell-stacks-two-different-ways.html' ref='tag:blogger.com,1999:blog-32850121.post-1635252836947494027' source='http://www.blogger.com/feeds/32850121/posts/default/1635252836947494027' type='text/html'/></entry><entry><id>tag:blogger.com,1999:blog-32850121.post-3139645362381840918</id><published>2006-12-13T02:06:00.000-08:00</published><updated>2006-12-13T02:06:00.000-08:00</updated><title type='text'>Hi Brian

Your Stack datatype is essential equal t...</title><content type='html'>Hi Brian&lt;br /&gt;&lt;br /&gt;Your Stack datatype is essential equal to the normal [] (List) datatype, except that you have ruled out the possibility of an empty stack.&lt;br /&gt;&lt;br /&gt;But why don't you just use the following implementation of stacks:&lt;br /&gt;&lt;br /&gt;empty = []&lt;br /&gt;&lt;br /&gt;push stack elem = elem : stack&lt;br /&gt;&lt;br /&gt;pop (elem : stack) = stack&lt;br /&gt;&lt;br /&gt;top (elem : stack) = elem&lt;br /&gt;&lt;br /&gt;All operations are cheap constant time operations.</content><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/32850121/1635252836947494027/comments/default/3139645362381840918'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/32850121/1635252836947494027/comments/default/3139645362381840918'/><link rel='alternate' type='text/html' href='http://progexpr.blogspot.com/2006/11/haskell-stacks-two-different-ways.html?showComment=1166004360000#c3139645362381840918' title=''/><author><name>Ken Friis Larsen</name><uri>http://friislarsen.net/blog</uri><email>noreply@blogger.com</email></author><thr:in-reply-to xmlns:thr='http://purl.org/syndication/thread/1.0' href='http://progexpr.blogspot.com/2006/11/haskell-stacks-two-different-ways.html' ref='tag:blogger.com,1999:blog-32850121.post-1635252836947494027' source='http://www.blogger.com/feeds/32850121/posts/default/1635252836947494027' type='text/html'/></entry></feed>