Re: any?

2015-04-25 Thread Colin Taylor
very` and `not-every`. On Sunday, April 26, 2015 at 2:21:26 PM UTC+12, Alex Miller wrote: > > I think 'some' fills this role. Given truthy values, why do you need to > use boolean with it? > > On Saturday, April 25, 2015 at 8:32:09 PM UTC-5, Colin Taylor wrote: >>

Re: any?

2015-04-26 Thread Colin Taylor
Oh uggh wheres the delete post button. I'll blame the 3 mth old with reflux for that. On Monday, April 27, 2015 at 12:56:04 AM UTC+12, James Reeves wrote: > > Those examples all work with `some` as well: > > user=> (some true? [false true false]) > true > user=> (some even? [1 2 3]) > true > use

No matching field found: length for class byte array

2015-07-01 Thread Colin Taylor
Yep you're in a cast of confused hundreds? thousands? here. It's quickly googlable but I'd still prefer to see my (rejected) humane suggestion in the error. While I don't advocate coding lessons in error messages, this really is an anomalous Java detail leaking through. user=> (.length (int-arr

GMail code formatter

2016-06-14 Thread Colin Taylor
Even easier, just copy and paste from Cursive :) -- 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 members are moderated - please be patient with your first post. To

Re: GMail code formatter

2016-06-16 Thread Colin Taylor
e/IDEA open. > Alan > > > On Tue, Jun 14, 2016 at 9:38 PM, Colin Taylor > wrote: > >> Even easier, just copy and paste from Cursive :) >> >> -- >> You received this message because you are subscribed to the Google >> Groups "Clojure" group.

Ubergraph - request for volunteers to benchmark alternative implementation

2019-08-17 Thread Colin Taylor
I didn't strip it down for a true benchmarking test and my use case is large but fairly sparsely connected graphs, but I get about 10% improvement. -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegro

conditional logic implemented as pattern-matching and restructuring in the signature of the function

2016-02-11 Thread Colin Taylor
Defm does this too though I've never got round to fully finishing it. (defm file-or-string-fn [] ([File] (println "It's a file")) ([s :- String] (println "It's a string " s)) (["magic"] (println "It's magic")) ([_] (println "It's a " (type _1 -- You received this message because you

Re: Reworking :pre condition to add an error message

2016-03-29 Thread Colin Taylor
Would there be interest in a ticket in this? Seems simple enough if (as above) putting the message under the :pre key is acceptable? On Thursday, July 14, 2011 at 3:25:16 AM UTC+12, frye wrote: > > I do think a simple String error message is all that the user of the > function should provide. F

get all record instances

2011-11-05 Thread Colin Taylor
Hi, given a namespace sources with [simplified definitions] (defrecord Source [name url]) (def google (source "Google" "google.com")) (def bbc (source "BBC" "bbc.co.uk")) (def nbc ... etc. what would be the idiomatic way to implement (defn get-all-sources) cheers Colin -- You received this

Re: get all record instances

2011-11-05 Thread Colin Taylor
Actually that does seem the most idiomatic approach (def sources {:bcc source("bbc.. ), :google source("), } (defn all-sources [] -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to clojure@googlegr

Re: get all record instances

2011-11-05 Thread Colin Taylor
Actually that does seem the most idiomatic approach (def sources {:bcc source("bbc.. ), :google source("), } (defn all-sources [] (vals sources)) -- You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email to c