---
title: "Discussion on \"Repeating Digits in Clojure\" | Hashnode"
description: "Discussion on \"Repeating Digits in Clojure\". My son asked me if I could make the computer double numbers, like\n\n2 4 6 → 22 44 66\n\nI started with a really ugly solution:\n(map\n (fn [x]\n   (parse-long (clojure.string/join\n                \"\"\n                [(str x) (str x)])))\n [2 4 6])\n;;=> (22 4..."
url: "https://hashnode.com/posts/repeating-digits-in-clojure/68ce2425f4ecd96d23b0474c"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [Repeating Digits in Clojure](https://brettrowberry.com/repeating-digits-in-clojure?utm_source=hashnode&utm_medium=feed)

My son asked me if I could make the computer double numbers, like 2 4 6 → 22 44 66 I started with a really ugly solution: (map (fn \[x\] (parse-long (clojure.string/join "" \[(str x) (str x)\]))) \[2 4 6\]) ;;=> (22 4...

Sep 20, 2025 · 2 min read · brettrowberry.com  
Read the article

-   [#concatentation](https://hashnode.com/tag/concatentation)
-   [#clojure](https://hashnode.com/tag/clojure)
-   [#code-golf](https://hashnode.com/tag/code-golf)

## Written by

[Brett Rowberry](https://hashnode.com/@brettrowberry)

@brettrowberry

  
[View profile](https://hashnode.com/@brettrowberry)

Husband, dad, manager, functional programmer, and DIYer

I like programming (at work) and learning for fun. You'll often find me cooking and working on my house in my spare time.

## Responses

Markdown supported · ⌘↵ to post

No responses yet.
