|
6 | 6 |
|
7 | 7 | <meta name="viewport" content="width=device-width, initial-scale=1.0, user-scalable=yes"> |
8 | 8 |
|
| 9 | +<meta name="author" content="Sean Corfield"> |
| 10 | +<meta name="author" content="Timothy Pratley"> |
| 11 | +<meta name="dcterms.date" content="2025-05-30"> |
| 12 | +<meta name="keywords" content="transducers"> |
9 | 13 |
|
10 | | -<title>pairing – Clojure Civitas</title> |
| 14 | +<title>A few examples of Transducers – Clojure Civitas</title> |
11 | 15 | <style> |
12 | 16 | code{white-space: pre-wrap;} |
13 | 17 | span.smallcaps{font-variant: small-caps;} |
|
110 | 114 | <script data-goatcounter="https://clojurecivitas.goatcounter.com/count" async="" src="//gc.zgo.at/count.js"></script> |
111 | 115 |
|
112 | 116 |
|
113 | | -<meta property="og:title" content="Clojure Civitas"> |
| 117 | +<meta property="og:title" content="A few examples of Transducers – Clojure Civitas"> |
114 | 118 | <meta property="og:description" content=""> |
115 | 119 | <meta property="og:image" content="https://clojurecivitas.github.io/clojure_camp/images/civitas-icon.svg"> |
116 | 120 | <meta property="og:site_name" content="Clojure Civitas"> |
|
338 | 342 | <!-- margin-sidebar --> |
339 | 343 |
|
340 | 344 | <!-- main --> |
341 | | -<main class="content" id="quarto-document-content"><header id="title-block-header" class="quarto-title-block"></header> |
| 345 | +<main class="content" id="quarto-document-content"> |
342 | 346 |
|
343 | 347 |
|
| 348 | +<header id="title-block-header" class="quarto-title-block default"> |
| 349 | +<div class="quarto-title"> |
| 350 | +<h1 class="title">A few examples of Transducers</h1> |
| 351 | +</div> |
| 352 | + |
| 353 | + |
| 354 | +<div class="quarto-title-meta-author"> |
| 355 | + <div class="quarto-title-meta-heading">Authors</div> |
| 356 | + <div class="quarto-title-meta-heading">Affiliations</div> |
| 357 | + |
| 358 | + <div class="quarto-title-meta-contents"> |
| 359 | + <p class="author"><a href="https://github.com/seancorfield">Sean Corfield</a> </p> |
| 360 | + </div> |
| 361 | + <div class="quarto-title-meta-contents"> |
| 362 | + <p class="affiliation"> |
| 363 | + <a href="https://clojure.camp/"> |
| 364 | + Clojure Camp |
| 365 | + </a> |
| 366 | + </p> |
| 367 | + </div> |
| 368 | + <div class="quarto-title-meta-contents"> |
| 369 | + <p class="author"><a href="https://timothypratley.blogspot.com/p/httpswww.html">Timothy Pratley</a> <a href="mailto:timothypratley@gmail.com" class="quarto-title-author-email"><i class="bi bi-envelope"></i></a> </p> |
| 370 | + </div> |
| 371 | + <div class="quarto-title-meta-contents"> |
| 372 | + <p class="affiliation"> |
| 373 | + <a href="https://hummi.app"> |
| 374 | + Hummi |
| 375 | + </a> |
| 376 | + </p> |
| 377 | + </div> |
| 378 | + </div> |
344 | 379 |
|
| 380 | +<div class="quarto-title-meta"> |
| 381 | + |
| 382 | + |
| 383 | + <div> |
| 384 | + <div class="quarto-title-meta-heading">Published</div> |
| 385 | + <div class="quarto-title-meta-contents"> |
| 386 | + <p class="date">May 30, 2025</p> |
| 387 | + </div> |
| 388 | + </div> |
| 389 | + |
| 390 | + |
| 391 | + </div> |
| 392 | + |
| 393 | + |
| 394 | +<div> |
| 395 | + <div class="keywords"> |
| 396 | + <div class="block-title">Keywords</div> |
| 397 | + <p>transducers</p> |
| 398 | + </div> |
| 399 | +</div> |
| 400 | + |
| 401 | +</header> |
345 | 402 |
|
346 | 403 |
|
347 | 404 | <style></style> |
|
358 | 415 | <script src="clojure_camp/pairing_files/md-default1.js" type="text/javascript"></script> |
359 | 416 | <script src="clojure_camp/pairing_files/portal2.js" type="text/javascript"></script> |
360 | 417 | <div class="sourceClojure"> |
361 | | -<div class="sourceCode" id="cb1"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>(<span class="kw">ns</span> clojure-camp.pairing)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div> |
| 418 | +<div class="sourceCode" id="cb1"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb1-1"><a href="#cb1-1" aria-hidden="true" tabindex="-1"></a>^{<span class="at">:clay</span></span> |
| 419 | +<span id="cb1-2"><a href="#cb1-2" aria-hidden="true" tabindex="-1"></a> {<span class="at">:quarto</span> {<span class="at">:title</span> <span class="st">"A few examples of Transducers"</span></span> |
| 420 | +<span id="cb1-3"><a href="#cb1-3" aria-hidden="true" tabindex="-1"></a> <span class="at">:type</span> <span class="at">:post</span></span> |
| 421 | +<span id="cb1-4"><a href="#cb1-4" aria-hidden="true" tabindex="-1"></a> <span class="at">:author</span> [<span class="at">:seancorfield</span> <span class="at">:timothypratley</span>]</span> |
| 422 | +<span id="cb1-5"><a href="#cb1-5" aria-hidden="true" tabindex="-1"></a> <span class="at">:date</span> <span class="st">"2025-05-30"</span></span> |
| 423 | +<span id="cb1-6"><a href="#cb1-6" aria-hidden="true" tabindex="-1"></a> <span class="at">:category</span> <span class="at">:clojure</span></span> |
| 424 | +<span id="cb1-7"><a href="#cb1-7" aria-hidden="true" tabindex="-1"></a> <span class="at">:tags</span> [<span class="at">:transducers</span> <span class="at">:lazy-sequences</span> <span class="at">:xforms</span>]</span> |
| 425 | +<span id="cb1-8"><a href="#cb1-8" aria-hidden="true" tabindex="-1"></a> <span class="at">:keywords</span> [<span class="at">:transducers</span>]}}}</span> |
| 426 | +<span id="cb1-9"><a href="#cb1-9" aria-hidden="true" tabindex="-1"></a>(<span class="kw">ns</span> clojure-camp.pairing)</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div> |
362 | 427 | </div> |
363 | | -<p>let’s work on an algorithm together!</p> |
| 428 | +<p>let’s work on a post together!</p> |
364 | 429 | <p>this produces a lazy sequence of strings:</p> |
365 | 430 | <div class="sourceClojure"> |
366 | 431 | <div class="sourceCode" id="cb2"><pre class="sourceCode clojure code-with-copy"><code class="sourceCode clojure"><span id="cb2-1"><a href="#cb2-1" aria-hidden="true" tabindex="-1"></a>(<span class="kw">map</span> #(<span class="kw">str</span> <span class="st">"Hello, "</span> <span class="va">%</span> <span class="st">"!"</span>) [<span class="st">"Alice"</span> <span class="st">"Bob"</span> <span class="st">"Charlie"</span>])</span></code><button title="Copy to Clipboard" class="code-copy-button"><i class="bi"></i></button></pre></div> |
|
0 commit comments