{"id":2822,"date":"2014-07-18T07:36:17","date_gmt":"2014-07-18T11:36:17","guid":{"rendered":"http:\/\/irreal.org\/blog\/?p=2822"},"modified":"2014-07-18T07:36:22","modified_gmt":"2014-07-18T11:36:22","slug":"lets-play-emacs-golf","status":"publish","type":"post","link":"https:\/\/irreal.org\/blog\/?p=2822","title":{"rendered":"Let&#8217;s Play Emacs Golf!"},"content":{"rendered":"<p> It&#8217;s been a while since Irreal has had an EmacsGolf challenge but yesterday&#8217;s post on <a href=\"http:\/\/irreal.org\/blog\/?p=2820\">Programming Silliness<\/a> suggested a nice one. When I ran the grep, I got <\/p>\n<table border=\"2\" cellspacing=\"0\" cellpadding=\"6\" rules=\"groups\" frame=\"hsides\">\n<colgroup>\n<col  class=\"left\" \/> <\/colgroup>\n<tbody>\n<tr>\n<td class=\"left\">A<\/td>\n<\/tr>\n<tr>\n<td class=\"left\">a<\/td>\n<\/tr>\n<tr>\n<td class=\"left\">aa<\/td>\n<\/tr>\n<tr>\n<td class=\"left\">Ab<\/td>\n<\/tr>\n<tr>\n<td class=\"left\">aba<\/td>\n<\/tr>\n<tr>\n<td class=\"left\">&#x2026;<\/td>\n<\/tr>\n<tr>\n<td class=\"left\">faff<\/td>\n<\/tr>\n<tr>\n<td class=\"left\">fe<\/td>\n<\/tr>\n<tr>\n<td class=\"left\">fed<\/td>\n<\/tr>\n<tr>\n<td class=\"left\">fee<\/td>\n<\/tr>\n<tr>\n<td class=\"left\">feed<\/td>\n<\/tr>\n<\/tbody>\n<\/table>\n<p> The challenge is in two parts: <\/p>\n<ol class=\"org-ol\">\n<li>Rearrange the long, single column list into four columns the way it was in yesterday&#8217;s post. <\/li>\n<li>I was lazy in yesterday&#8217;s post and left the results sorted by rows instead of the more natural by columns. Rearrange the list so that the results are sorted by columns. <\/li>\n<\/ol>\n","protected":false},"excerpt":{"rendered":"<p>It&#8217;s been a while since Irreal has had an EmacsGolf challenge but yesterday&#8217;s post on Programming Silliness suggested a nice one. When I ran the grep, I got A a aa Ab aba &#x2026; faff fe fed fee feed The &hellip; <a href=\"https:\/\/irreal.org\/blog\/?p=2822\">Continue reading <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[5],"tags":[18],"class_list":["post-2822","post","type-post","status-publish","format-standard","hentry","category-general","tag-emacs"],"_links":{"self":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2822","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=2822"}],"version-history":[{"count":1,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2822\/revisions"}],"predecessor-version":[{"id":2823,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=\/wp\/v2\/posts\/2822\/revisions\/2823"}],"wp:attachment":[{"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=2822"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=2822"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/irreal.org\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=2822"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}