Following the convention not to use `def` in non-top-level positions, you
should use `intern` instead of `def`.
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegroups.com
Note that posts from new mem
Great stuff, thanks! I'm not familiar, but is the `clojure.spec.gen` namespace
going to be ported?
On Wednesday, June 1, 2016 at 1:01:58 PM UTC-5, David Nolen wrote:
> ClojureScript, the Clojure compiler that emits JavaScript source code.
>
>
> README and source code: https://github.com/clojur
"We are looking for a Clojure (Script) Developer, preferably with
experience in React Native and re-frame.
Status is a hybrid instant messaging platform and DApp (distributed
application) browser for cryptocurrencies and smart contracts. We intend to
play a part in shaping the future of payment
Hi,
I'm doing something like:
(def valid-email (gen/fmap (fn [[name domain]] (str name "@" domain))
(gen/tuple (gen/not-empty gen/string) gen/uuid)))
(defspec test-email
100
(for-all [email valid-email]
(tx-email! (get-in system [:database :conn]) email)
The
Let bindings from thbe macroexpansion of (let [[x & xs] v] ...)
;; old macroexpand
[G__1 v
vec__2 G__1
x (nth vec__2 0 nil)
xs (nthnext vec__2 1)]
;; new macroexpand
[G__6 v
vec__7 G__6
seq__8(seq vec__7)
first__9 (first seq__8)
seq__8(next seq
Hi,
I have a riddle I am not sure how to solve:
```
user=> (defn just-a-demo-seq[] (println "in just-a-demo-seq") [1 2 3 4 5 6
7 8 9])
#'user/just-a-demo-seq
user=> (def do-not-print-it (apply concat (repeatedly just-a-demo-seq)))
in just-a-demo-seq
in just-a-demo-seq
in just-a-demo-seq
in just-a-
Two things at play here:
1- concat is defined to have 4 different arities: 0-arg, 1-arg, 2-arg, 3+args.
In order to figure out which arity to use, apply has to realize at least as
many elements as the minimum number of args required by the largest arity,
which in this case is 3
2- apply has a s
> 1- concat is defined to have 4 different arities: 0-arg, 1-arg, 2-arg,
> 3+args. In order to figure out which arity to use, apply has to realize at
> least as many elements as the minimum number of args required by the
> largest arity, which in this case is 3
> 2- apply has a small bug that cause
Hi,
I’m happy to announce a new release of Flake, the decentralized, k-ordered
unique ID generator.
Flake 0.4.0 includes a number of important breaking changes, but by far the
most important is dropping `generate` in favor of `generate!` which now returns
a ByteBuffer. Previously `generate` re
The generator should definitely always generate unique values (though only
because gen/uuid does that), though as you say shrinking is different case
that would be problematic for what you're doing. When you say "I don't see
any other error" have you accounted for the fact that test.check normal
Let's say I have an object represented by a series of nested maps:
{:a {:b 1} :c {:d 2}}
and now I'm going to be making a whole slew of edits to the submaps.
To do this efficiently, I need to make all the levels of the map
transients, because any update to the inner map also updates the outer ma
This is interesting. Is it faster than uuid for generation and/or
comparing for equality?
On Thu, Jun 2, 2016 at 6:03 PM, Max Countryman wrote:
> Hi,
>
> I’m happy to announce a new release of Flake, the decentralized, k-ordered
> unique ID generator.
>
> Flake 0.4.0 includes a number of import
Have you looked at Specter? I actually don't know if it uses transients
under the hood or not, or if you can make it do so, but it seems like a
good fit for the data manipulation problem, at least.
On 3 June 2016 at 14:43, Mark Engelberg wrote:
> Let's say I have an object represented by a serie
That's an interesting idea. Maybe there's a way to build a set of Specter
navigators that operate on transients, and then use its corresponding
eqiuvalences for assoc-in, update-in, etc.
On Thu, Jun 2, 2016 at 9:01 PM, Colin Fleming
wrote:
> Have you looked at Specter? I actually don't know if
BTW if you're interested in Specter, Brian Marick has an interesting book
which aims to teach Specter by implementing it: https://leanpub.com/specter.
I bought it but haven't had time to work through it yet, but from an
initial skimming it looks very nice.
On 3 June 2016 at 16:11, Mark Engelberg
Nice book! I've been looking for something like that, thanks for sharing!
On Thu, Jun 2, 2016 at 10:24 PM Colin Fleming
wrote:
> BTW if you're interested in Specter, Brian Marick has an interesting book
> which aims to teach Specter by implementing it:
> https://leanpub.com/specter. I bought it
16 matches
Mail list logo