Walkr (walk-reduce) is a Clojure library built to help you easily walk-reduce clojure data structures.
Here's a simple example.
(ns user
(:require [walkr.core :as w]
[clojure.string :as str]))
(w/prewalk-reduce
(fn [acc item]
(if (string? item)
[(conj item acc) (str/upper-case item)]
[acc item]))
#{}
[{:foo {:bar {:value "cold"}
:other "hot"}}
{:foo {:bar {:value "colder"}
:other "hotter"}}])
;;; => returns `#{"HOTTER" "COLDER" "HOT" "COLD"}`
See the existing tests for more examples.
walkr is built, tested, and deployed using Clojure Tools Deps.
GNU Make is used to simplify invocation of some commands.
k13labs/walkr releases for this project are on Clojars. Simply add the following to your project:
See CONTRIBUTING.md
YourKit supports open source projects with innovative and intelligent tools for monitoring and profiling Java and .NET applications. YourKit is the creator of YourKit Java Profiler, YourKit .NET Profiler, and YourKit YouMonitor.
Copyright 2025 Jose Gomez
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
Can you improve this documentation?Edit on GitHub
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |