tag:blogger.com,1999:blog-33446923.post7025316372945930401..comments2015-07-21T14:04:42.262-07:00Comments on p.brc: 99 Clojure Problems – 8: Eliminate Consecutive Duplicates of List Elementspbrchttp://www.blogger.com/profile/08886303380215934723noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-33446923.post-24856273474091891522015-07-21T14:04:42.262-07:002015-07-21T14:04:42.262-07:00@WranglerAz I like your solution it performs bette...@WranglerAz I like your solution it performs better than mine because 'last' takes linear time. Also your solution is way more elegant and succinct. pbrchttps://www.blogger.com/profile/08886303380215934723noreply@blogger.comtag:blogger.com,1999:blog-33446923.post-28299625436613743652015-07-21T13:45:57.274-07:002015-07-21T13:45:57.274-07:00I stumbled upon this page while looking for an und...I stumbled upon this page while looking for an understanding of the same problem. <br /><br />While I was looking through your compress, which uses last, I also found a solution using first.<br /><br />( #(map first (partition-by identity %)) '[a a a a b c c a a d e e e e]) <br /><br />I am still learning so I have no idea which way is preferred, do you have an opinion?WranglerAzhttps://www.blogger.com/profile/15532429212314411742noreply@blogger.com