Skip to content

Commit

Permalink
1.1.2 - HOTFIX: doto-for macro implementation
Browse files Browse the repository at this point in the history
  • Loading branch information
rybandrei2014 committed Sep 16, 2020
1 parent 532a8fe commit 8532377
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
8 changes: 8 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,11 @@
- redundant !nil?->, doto-when from util namespace
### Changed
- better implementation for doto-for macro

## 1.1.1
### Removed
- redundant code from util_test

## 1.1.2
### Changed
- HOTFIX: implementation of doto-for macro
2 changes: 1 addition & 1 deletion project.clj
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
(defproject dragoon/cljdub-dsp "1.1.1"
(defproject dragoon/cljdub-dsp "1.1.2"
:description "Sound processing library that allows usage of pydub library's functionality in Clojure as well as provides interface for interaction between pydub and TarsosDSP libraries"
:url "https://github.com/dragoon000320/cljdub-dsp"
:license {:name "Eclipse Public License 2.0"
Expand Down
4 changes: 2 additions & 2 deletions src/cljdub_dsp/util.clj
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@
([this f vals]
(let [res (gensym)]
`(let [~res ~this]
~@(for [val vals]
`(~f ~res ~val))
(doseq [val# ~vals]
(~f ~res val#))
~res)))
([this f val & rest]
`(doto-for ~this ~f ~(cons val rest))))

0 comments on commit 8532377

Please sign in to comment.