<head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8"><style type="text/css">div.sourceCode { overflow-x: auto; }
table.sourceCode, tr.sourceCode, td.lineNumbers, td.sourceCode {
margin: 0; padding: 0; vertical-align: baseline; border: none; }
table.sourceCode { width: 100%; line-height: 100%; }
td.lineNumbers { text-align: right; padding-right: 4px; padding-left: 4px; color: #aaaaaa; border-right: 1px solid #aaaaaa; }
td.sourceCode { padding-left: 5px; }
code > span.kw { color: #007020; font-weight: bold; } /* Keyword */
code > span.dt { color: #902000; } /* DataType */
code > span.dv { color: #40a070; } /* DecVal */
code > span.bn { color: #40a070; } /* BaseN */
code > span.fl { color: #40a070; } /* Float */
code > span.ch { color: #4070a0; } /* Char */
code > span.st { color: #4070a0; } /* String */
code > span.co { color: #60a0b0; font-style: italic; } /* Comment */
code > span.ot { color: #007020; } /* Other */
code > span.al { color: #ff0000; font-weight: bold; } /* Alert */
code > span.fu { color: #06287e; } /* Function */
code > span.er { color: #ff0000; font-weight: bold; } /* Error */
code > span.wa { color: #60a0b0; font-weight: bold; font-style: italic; } /* Warning */
code > span.cn { color: #880000; } /* Constant */
code > span.sc { color: #4070a0; } /* SpecialChar */
code > span.vs { color: #4070a0; } /* VerbatimString */
code > span.ss { color: #bb6688; } /* SpecialString */
code > span.im { } /* Import */
code > span.va { color: #19177c; } /* Variable */
code > span.cf { color: #007020; font-weight: bold; } /* ControlFlow */
code > span.op { color: #666666; } /* Operator */
code > span.bu { } /* BuiltIn */
code > span.ex { } /* Extension */
code > span.pp { color: #bc7a00; } /* Preprocessor */
code > span.at { color: #7d9029; } /* Attribute */
code > span.do { color: #ba2121; font-style: italic; } /* Documentation */
code > span.an { color: #60a0b0; font-weight: bold; font-style: italic; } /* Annotation */
code > span.cv { color: #60a0b0; font-weight: bold; font-style: italic; } /* CommentVar */
code > span.in { color: #60a0b0; font-weight: bold; font-style: italic; } /* Information */
</style></head><body><div class="sourceCode"><pre class="sourceCode"><code class="sourceCode">
(<span class="bu" title="BuiltInTok">def</span><span class="fu" title="FunctionTok"> blocks</span>
(<span class="kw" title="KeywordTok">-></span> <span class="st" title="StringTok">"BO XK DQ CP NA GT RE TG QD FS JW HU VI AN OB ER FS LY PC ZM"</span> (.split <span class="st" title="StringTok">" "</span>) <span class="kw" title="KeywordTok">vec</span>))
(<span class="bu" title="BuiltInTok">defn</span><span class="fu" title="FunctionTok"> omit </span>
<span class="st" title="StringTok">"return bs with (one instance of) b omitted"</span>
[bs b]
(<span class="kw" title="KeywordTok">let</span> [[before after] (<span class="kw" title="KeywordTok">split-with</span> #(<span class="kw" title="KeywordTok">not=</span> b %) bs)]
(<span class="kw" title="KeywordTok">concat</span> before (<span class="kw" title="KeywordTok">rest</span> after))))
(<span class="bu" title="BuiltInTok">defn</span><span class="fu" title="FunctionTok"> abc </span>
<span class="st" title="StringTok">"return lazy sequence of solutions (i.e. block lists)"</span>
[blocks [c & cs]]
(if-some c
(<span class="kw" title="KeywordTok">for</span> [b blocks <span class="at" title="AttributeTok">:when</span> (<span class="kw" title="KeywordTok">some</span> #(<span class="kw" title="KeywordTok">=</span> c %) b)
bs (abc (omit blocks b) cs)]
(<span class="kw" title="KeywordTok">cons</span> b bs))
[[]]))
(<span class="kw" title="KeywordTok">doseq</span> [word [<span class="st" title="StringTok">"A"</span> <span class="st" title="StringTok">"BARK"</span> <span class="st" title="StringTok">"Book"</span> <span class="st" title="StringTok">"treat"</span> <span class="st" title="StringTok">"COMMON"</span> <span class="st" title="StringTok">"SQUAD"</span> <span class="st" title="StringTok">"CONFUSE"</span>]]
(<span class="kw" title="KeywordTok">->></span> word .toUpperCase (abc blocks) <span class="kw" title="KeywordTok">first</span> (<span class="kw" title="KeywordTok">printf</span> <span class="st" title="StringTok">"%s: %b</span>\n<span class="st" title="StringTok">"</span> word)))</code></pre></div></body>