Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

accidentally made two maps instead of one pre/post map

  • Loading branch information...
commit 4ed35737595e34f7852715dd3d447df371238751 1 parent 7436061
@amalloy authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/bit_packer/core.clj
View
4 src/bit_packer/core.clj
@@ -23,8 +23,8 @@
(defn unpack
[[& nums] base]
- {:pre [(pos-ints? nums)]}
- {:post [(pos-int? %)]}
+ {:pre [(pos-ints? nums)]
+ :post [(pos-int? %)]}
(reduce + (map *
nums
(iterate #(* base %) 1))))
Please sign in to comment.
Something went wrong with that request. Please try again.