Re: Anyone willing to do a tutorial on minecraft modding in clojure?

2014-09-18 Thread Jeb Beich
Is Bukkit an option? I've used https://github.com/CmdrDats/clj-minecraft. Active project, fun and easy to use. On Thu, Sep 18, 2014 at 4:30 AM, Hi-tech Robert wrote: > Hi, I am looking for tutorial on modding minecraft 1.7.4 in clojure. There > are plenty of tutorial that use java e.g. > http://

Re: Help with writing a function to merge two maps

2014-06-17 Thread Jeb Beich
Here's what I came up with: (require '[clojure.set :as set]) (let [->map-fn (fn [s] (->> s (map (juxt :id :val)) (into {}))) xs-m (->map-fn xs) ys-m (->map-fn ys)] (->> (set/union (keys xs-m) (keys ys-m)) (map (fn [k] {:id k :val (* (get xs-m k 1) (get ys-m k 1))} On Tue

Re: query on clojure maps / vectors

2014-02-13 Thread Jeb Beich
You sure this isn't what you're looking for? https://gist.github.com/stuarthalloway/2645453 On Thu, Feb 13, 2014 at 8:34 PM, David Jagoe wrote: > Here's an example: > > > http://www.bagdemir.com/2013/07/30/implementing-relational-algebra-in-clojure/ > > > On 13 February 2014 18:32, David Jagoe

Re: Need help with recursion!

2013-10-24 Thread Jeb Beich
Tweaked slightly... (defn my-filter [pred? a-seq] (if (empty? a-seq) a-seq (if (pred? (first a-seq)) (cons (first a-seq) (my-filter pred? (rest a-seq))) (my-filter pred? (rest a-seq) On Thu, Oct 24, 2013 at 9:51 AM, Wilson wrote: > I am supposed to make my own filter

Re: [ANN] enlive-partials 0.2.0

2013-05-20 Thread Jeb
Just what I was looking for last week -- many thanks! On Monday, May 20, 2013 12:41:50 PM UTC-5, Erik Bakstad wrote: > > enlive-partials (http://github.com/ebaxt/enlive-partials) adds support > for wrapping and including enlive templates. It is convenient when you want > to give designers a sand

Re: More idiomatic way to find the first non-nil function result?

2013-05-20 Thread Jeb
Is there a term/phrase that describes this style of programming (as opposed to nested ifs, for example)? On Wednesday, May 1, 2013 12:46:36 PM UTC-5, Cedric Greevey wrote: > > What about > > (or > (validate-data-1 data-1) > (validate-data-2 data-2) > (validate-data-3 data-3)) > -- -- You

Re: Best IDE

2012-01-18 Thread Jeb Beich
r first post. > To unsubscribe from this group, send email to > clojure+unsubscr...@googlegroups.com > For more options, visit this group at > http://groups.google.com/group/clojure?hl=en -- Jeb Beich http://www.red-source.net/jeb -- You received this message because you are s

Re: Good database for local storage in Clojure

2012-01-11 Thread Jeb Beich
sqlite (www.sqlite.org) is another obvious choice, right? On Jan 10, 2012 9:46 PM, "Sean Corfield" wrote: -- 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 a

Re: Destructuring syntax

2012-01-08 Thread Jeb Beich
e value is bound to the parameter in the same place. > > > > > Feels more natural to me in a way. > > > > > Thoughts? > > -- > You received this message because you are subscribed to the Google > Groups "Clojure" group. > To post to this grou