tware design/construction in the clojure "world".
>
> On Monday, June 3, 2019 at 8:04:57 PM UTC-4, Tom Hicks wrote:
>>
>> Hi Kyle,
>>
>> My memory is that Peter and Tony started 1060 Research almost 20 years
>> ago. They used to publish a fairly fr
Hi Kyle,
My memory is that Peter and Tony started 1060 Research almost 20 years ago.
They used to publish a fairly frequent email newsletter (
http://wiki.netkernel.org/wink/wiki/NetKernel/News/) about their activities
but I haven't seen a newsletter from them in over a year and a half.
I menti
typo: try https://github.com/clojure/data.codec
On Oct 10, 6:31 pm, Alexander Taggart wrote:
> Base64 decoding support has been added.
>
> http://github.com/ataggart/clojure.data.codec
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this
Sortof, but not as concisely, since the op is repeated each time:
(-> m (nth 2) (nth 2) (nth 1))
-tom
On Jun 29, 4:20 pm, Antonio Recio wrote:
> (get-in m [2 2 1]) is great! Which are the others ones? Is there something
> like (-> m [2 2 1])?
--
You received this message because you are su
> :dev-dependencies [[swank-clojure "1.2.1"]])
I think this is an outdated dependency. I got it to work with 1.4.0-
SNAPSHOT.
(1.2.1 is, of course, the latest stable clojure.jar version, so this
might have
been a typo from your previous experiments).
good luck -t
On May 22, 1:53 am, dokondr
Thanks Benny! That was the problem and the new simplified setup
just worked for me. -t
On May 21, 5:51 pm, Benny Tsai wrote:
> You can grab it here:
>
> https://github.com/technomancy/clojure-mode
>
> On Saturday, May 21, 2011 6:41:18 PM UTC-6, Tom Hicks wrote:
>
> > Wh
Where does one get clojure-mode 1.9.1? The latest I see on github is
1.7.1.
On May 20, 4:06 pm, Phil Hagelberg wrote:
> On May 19, 11:15 pm, Tassilo Horn wrote:
>
> > Do I get you right that the output is the problem that prevents me to
> > get to the SLIME REPL, since you didn't say anything at
But note that Larry's extra quote came directly from the
documentation page he links to.
On May 21, 8:56 am, David Nolen wrote:
> On Sat, May 21, 2011 at 11:46 AM, larry wrote:
> > Let's say you're a new user and you want to split a string on a
> > delimiter in clojure.
>
> > Okay, I google
You mentioned you were on the Mac, so you can reduce your "round-
about"
using the pbcopy tool on the command line, as follows:
% pygmentize -f rtf swing-ex.clj | pbcopy -Prefer rtf
(Now, inside Keynote, just paste).
pbcopy and pbpaste are very useful tools to become familiar with.
cheers,
Worked great for meThanks Stuart for wrestling with the dragon.
I've created and shared a couple of simple issue filters to get issue-
browsers started. Search for them under managing filters section.
cheers,
-tom
On Oct 27, 6:07 pm, Stuart Halloway wrote:
> Thanks to Contegix tech s
On Sep 12, 10:44 pm, Meikel Brandmeyer wrote:
> Hi,
>
> On 13 Sep., 04:30, Robert McIntyre wrote:
>
> > Unless there's a good reason for :or to work the way it does I think
> > that would be a good idea, since then you can define "default" maps
> > somewhere else and use those both with the :or
I just noticed this unexpected result for Map destructuring with an
:or directive:
user=> (def guys-name-map {:f-name "Guy" :l-name
"Steele"})
#'user/guys-name-map
user=> (let [{:keys [f-name m-name l-name] :or {:m-name "CL"}} guys-
name-map] (str l-name ", " f-name "+" m-name))
"Steele, Guy+"
PDF of slides from my presentation at a recent Tucson JUG:
http://tinyurl.com/yjrnh55
(licensed as Creative Commons Attribution-Noncommercial). If you need
the
Powerpoint email me.
regards,
-tom
On Mar 3, 8:58 pm, Wilson MacGyver wrote:
> Looks like I'll be doing a talk on clojure next we
time: 233.80888 msecs"
>
> user> (time (test-walk really-lazy-recursive-string-walk 10
> 11))
> 10 reached bottom!
> "Elapsed time: 223.631872 msecs"
>
> The one with a zipper is the slowest, zippers being much more capable
> than just walking
On Jan 15, 1:21 pm, Nicolas Buduroi wrote:
> Hi, I'm still not familiar with laziness and I'm trying to make a
> function recursively walk arbitrary data structures to perform some
> action on all strings.
> ...
> Is there a way too make a fully lazy version of this function?
>
> - budu
I'm tryin
On Jan 15, 1:21 pm, Nicolas Buduroi wrote:
> Hi, I'm still not familiar with laziness and I'm trying to make a
> function recursively walk arbitrary data structures to perform some
> action on all strings. The non-lazy version is quite easy to do:
>
> (use
> 'clojure.walk
> 'clojure.contrib.st
Sorry, I forgot to ask: how rapid is "rapidly"?
Can you provide a simple example that rapidly blows the stack
so we can experiment with lazy solutions?
-tom
On Jan 15, 1:21 pm, Nicolas Buduroi wrote:
>
> But it blow up the stack quite rapidly, ...
> ...
> - budu
--
You received this mes
On Jan 15, 1:44 pm, Nicolas Buduroi wrote:
> On Jan 15, 3:25 pm, Sean Devlin wrote:
>
> > Did you try wrapping everything w/ a call to lazy-seq?
>
> Yes, it doesn't seem change anything.
I suspect that just wrapping everything in a call to lazy-seq cannot
work
in this case. In the implementatio
On Jan 3, 9:22 pm, Timothy Pratley wrote:
> 2010/1/4 Tom Hicks :
>
> > All the other code is there to parallel the functionality in 'subvec'.
>
> Ah right, I see what you mean.
> Calling count in the two argument form will realize the entire
> sequence unnece
On Jan 3, 7:06 pm, Timothy Pratley wrote:
> 2010/1/4 Tom Hicks :
>
> > Comments and code review welcome
>
> Hi Tom,
>
> Some interesting additions. Regarding sub-sequence it might also be
> written like so:
>
> (defn subseq2
> [coll start end]
>
Have you looked at Neo4J? I have no experience with it but
someone in the forum just announced a Clojure wrapper for it:
http://groups.google.com/group/clojure/browse_thread/thread/9628c622784ff45a#
cheers,
-t
On Jan 1, 2:07 pm, Julian Morrison wrote:
> I've just recently been poking arou
A couple weeks ago Sean Devlin posted a blog entry asking for thoughts
on
new sequence functions (and posting many useful proposed functions
himself).
http://fulldisclojure.blogspot.com/2009/12/new-seq-utilities.html
I searched for, but didn't find, a parallel posting in this forum
(even though
I
A technique that works for me is to create sequences which are
"augmented"
with properties and then filter and transform those sequences in a
kind of pipeline.
Using that approach I came up with the following:
(defn eval-candidate [needle candidate]
"Returns a map representing derived informatio
Depending how you're starting the REPL, it looks like there is also
a command line option. Here's parts of the doc string from the main fn
in src/clj/clojure/main.clj (version 1.0.0):
(defn main
"Usage: java -cp clojure.jar clojure.main [init-opt*] [main-opt]
[arg*]
With no options or args, r
A slight modification, which I think avoids counting each collection
twice:
(defn append-val [val & colls]
(let [lengths (map count colls)
maxlen (apply max lengths)]
(map #(concat %1 (repeat (- maxlen %2) val)) colls lengths)
)
)
On Dec 23, 10:30 am, kyle smith wrote:
> It's a
On Dec 24, 6:01 pm, Richard Newman wrote:
> > but, I can't seem to do this with the 'inc' function:
>
> > user=> (binding [inc (fn [y] (+ 2 y))] (inc 44))
> > 45
>
> > Why doesn't this work?
>
> Because inc is inlined, and thus isn't mentioned when your binding
> occurs.
Thanks Richardthat'
On a related note, can someone explain the following...
I can define a function 'p1':
user=> (defn p1 [x] (+ 1 x))
#'user/p1
user=> (p1 44)
45
and then shadow it within the binding construct:
user=> (binding [p1 (fn [y] (+ 2 y))] (p1 44))
46
but, I can't seem to do this with the 'inc' function
I'm not quite sure why you would want to say
(take n (repeatedly fn))
It appears to me that a fn called 'repeatedly' is really
being executed for its side-effects. If you are interested
in a sequence of values being returned from fn, then
make fn return a lazy sequence and 'take' will work on t
gt;
> On Oct 29, 9:58 am, Roman Roelofsen
> wrote:
>
> > Do you mind sharing the links? I am interested in it as well.
>
> > Thanks!
>
> > Roman
>
> > 2009/10/28 Tony Butterfield :
>
> > > Tom Hicks has just pointed me to an old thread which answe
This destructuring on sequences works:
user=> (let [[:as m] [1 2]] m)
[1 2]
but this one on associations doesn't (and it seems like it should):
user=> (let [{:as m} {:b 1 :c 2}] m)
java.lang.NullPointerException
clojure.lang.Compiler$CompilerException: NO_SOURCE_FILE:14: null
..
Is there
30 matches
Mail list logo