---
title: "Discussion on \"Sliding Windows in Clojure\" | Hashnode"
description: "Discussion on \"Sliding Windows in Clojure\". I was doing a little Clojure programming and my son asked me if the computer could\n\nmake it go 1 2 3, 2 3 4, 3 4 5, …\n\nI thought, hmm, that’s a sliding window.\nHere was my first thought:\n(->> (range 1 4)\n     (map (fn [x] [x (inc x) (inc (inc x))])))..."
url: "https://hashnode.com/posts/sliding-windows-in-clojure/68cb85c04b80a23a8fc07da8"
---

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

Discussion

# [Sliding Windows in Clojure](https://brettrowberry.com/sliding-windows-in-clojure?utm_source=hashnode&utm_medium=feed)

I was doing a little Clojure programming and my son asked me if the computer could make it go 1 2 3, 2 3 4, 3 4 5, … I thought, hmm, that’s a sliding window. Here was my first thought: (->> (range 1 4) (map (fn \[x\] \[x (inc x) (inc (inc x))\])))...

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

-   [#sliding-windows](https://hashnode.com/tag/sliding-windows)
-   [#clojure](https://hashnode.com/tag/clojure)

## 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.
