Skip to content

gateless/walkr

Repository files navigation

Build Status

About

Walkr (walk-reduce) is a Clojure library built to help you easily walk-reduce clojure data structures.

Usage

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 acc (str/lower-case item)) (str/upper-case item)]
      [acc item]))
  #{}
  [{:foo {:bar {:value #{"cOlD"}}
                      :other "hOt"}}
   {:foo {:bar {:value "ColDer"}
          :other "hoTteR"}}])
;;; =>
;;; [#{"cold" "hot" "colder" "hotter"}
;;;  [{:foo {:bar {:value #{"COLD"}}
;;;          :other "HOT"}}
;;;   {:foo {:bar {:value "COLDER"}
;;;          :other "HOTTER"}}]]

See the existing tests for more examples.

Building

walkr is built, tested, and deployed using Clojure Tools Deps.

GNU Make is used to simplify invocation of some commands.

Availability

gateless/walkr releases for this project are on Clojars. Simply add the following to your project:

Clojars Project

Communication

  • For any other questions or issues about walkr free to browse or open a Github Issue.

Contributing

See CONTRIBUTING.md

YourKit

YourKit

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.

LICENSE

Copyright 2025 Gateless

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.

About

Walkr (walk-reduce) is a Clojure library built to help you easily walk-reduce clojure data structures.

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published