I have a function to check the parameters of another function:
(defn params-correct-lucky-numbers
[upto]
(let [max (* 10 1000 1000)]
(if ( upto 1)
(do
(println The parameter upto should at least be 1)
false)
(if ( upto
Answering my own question. :-D
2015-02-20 11:01 GMT+01:00 Cecil Westerhof cldwester...@gmail.com:
I have a function to check the parameters of another function:
(defn params-correct-lucky-numbers
[upto]
(let [max (* 10 1000 1000)]
(if ( upto 1)
(do
Hi!
I added ajp? on immutant.web/run option to use the Undertow AJP Linstner in
Immutant2. :)
https://github.com/eunmin/immutant/tree/support_undertow_ajp
--
You received this message because you are subscribed to the Google
Groups Clojure group.
To post to this group, send email to
I have the following code:
(defn params-correct-lucky-numbers
( [upto] (params-correct-lucky-numbers upto true))
( [upto check-max]
(let [max (* 10 1000 1000)]
(cond
( upto 1) (do (printf The parameter upto should at least be 1
(%d)\n upto)
Cool. Submit a PR and we'll get it merged in.
Thanks!
Jim
On Fri, Feb 20, 2015 at 4:25 AM, Eunmin Kim telepopso...@gmail.com wrote:
Hi!
I added ajp? on immutant.web/run option to use the Undertow AJP Linstner in
Immutant2. :)
https://github.com/eunmin/immutant/tree/support_undertow_ajp
You may want to look at
https://clojuredocs.org/clojure.core/case
https://clojuredocs.org/clojure.core/cond
On Friday, February 20, 2015 at 11:01:43 AM UTC+1, Cecil Westerhof wrote:
I have a function to check the parameters of another function:
(defn params-correct-lucky-numbers
Hello!
You have strange syntax -- no `:` symbol before keyword, `render` (not
`render-file`) function for html template...
Try this, both works for me [selmer 0.8.0]:
(render {{ foo-str|safe }} {:foo-str bbold!/b})
(render-file templates/foo.djhtml {:foo-str bbold!/b})
пятница, 20 февраля
Hi,
A user reported an error for closp which I cannot make sense of:
java.lang.RuntimeException: No such var: t-cli/parse-opts,
compiling:(leiningen/new/closp.clj:102:52)
This is the issue: https://github.com/sveri/closp/issues/1
The code is here:
I'm having some issues working with CLJS and Light table. I've found a few
things online, but never a single end-to-end setup. Does anyone have any
advice on setting up, beginning with lein, ending with repl-browser
connection in light table?
Thanks.
--
You received this message because
What issues are you having?
JvJ mailto:kfjwhee...@gmail.com
February 20, 2015 at 2:17 PM
I'm having some issues working with CLJS and Light table. I've found
a few things online, but never a single end-to-end setup. Does anyone
have any advice on setting up, beginning with lein, ending with
The goal with your library is to transmit deltas between two systems, and
then apply those deltas to the other system to make them match, yes?
How would you use the diff return value ({:x {:y 1}} nil nil) to cause a
system that currently has {:x {:y 1}} to change to {:x {}}, as opposed to
some
Alex/Rich, if a patch is welcome for this I am happy to raise a ticket and
submit.
Test case:
(clojure.data/diff {:x {:y 1}} {:x {}})
Expected:
({:x {:y 1}} nil nil)
Actual:
;; = ({:x {:y 1}} {:x nil} nil)
Problem:
There is nothing only in the second input, so the second result should be
On Fri, Feb 20, 2015 at 4:40 PM, Andy Fingerhut andy.finger...@gmail.com
wrote:
Why not ({:x {:y 1}} {:x {}} nil) ?
Hi Andy,
Great point! Both solutions convey accurately the same meaning? I have a
subjective preference to nil as the absence of things in b that are not in
a. Conversely {:x
Hi Andy,
On Fri, Feb 20, 2015 at 5:51 PM, Andy Fingerhut andy.finger...@gmail.com
wrote:
The goal with your library is to transmit deltas between two systems, and
then apply those deltas to the other system to make them match, yes?
Correct, it works well for what I need it to do. :)
How
Awesome! :)
2015년 2월 20일 금요일 오후 11시 12분 11초 UTC+9, Jim Crossley 님의 말:
Cool. Submit a PR and we'll get it merged in.
Thanks!
Jim
On Fri, Feb 20, 2015 at 4:25 AM, Eunmin Kim telepo...@gmail.com
javascript: wrote:
Hi!
I added ajp? on immutant.web/run option to use the Undertow AJP
CLJ-1604 was just fixed (as far as I can see), by this
commit:
https://github.com/clojure/clojure/commit/59889fdeb7ef7f4f73e13fa6ecb627f62b7d2adb
On Friday, 20 February 2015 12:10:50 UTC+8, Adam Krieg wrote:
I'm running into what appears to be the same issue described in CLJ-1604
PS. Well, I suppose you'd want to make sure that you're not getting a key
that lies past the right endpoint of the map when using the nearest-based
approach.
On 20 February 2015 at 16:39, Michał Marczyk michal.marc...@gmail.com
wrote:
Do you mean you'd like to compress
{0 :a 1 :a 2 :a 3 :a
Thanks for your comments. I see now that I should clarify: all I really
need is public access to the left and right Java methods in PTM. (So,
perhaps CLJ-1008 is asking for more than I really need.)
It seems to me that since Clojure's RB-Tree implementation (i.e. sorted-map
= PTM), it might as
Do you mean you'd like to compress
{0 :a 1 :a 2 :a 3 :a 4 :b 5 :b 6 :c 7 :c 8 :c 9 :c}
to something like
{[0 1 2] :a [4 5] :b [6 7 8 9] :c}
while maintaining the ability to ask for the value at 0, 1, …, 9?
If so, you could represent the above as
{0 :a 2 :a 4 :b 5 :b 6 :c 9 :c}
(notice
Could it perhaps be this bug at work?
http://dev.clojure.org/jira/browse/CLJ-1604
http://dev.clojure.org/jira/browse/CLJ-1604
Sean
On Feb 20, 2015, at 1:31 PM, Sven Richter sver...@googlemail.com wrote:
A user reported an error for closp which I cannot make sense of:
This would make sense because javac isn't used to generate those classes.
On Thursday, February 19, 2015 at 5:08:33 PM UTC-8, Jeremy Heiler wrote:
On February 19, 2015 at 4:40:16 PM, Felipe Gerard (fge...@interware.com.mx
javascript:) wrote:
When you set:
:javac-options [-target
Yes, exactly, you read my mind.
(I'd also like to do this a sorted-map / PersistentTreeMap (nudge, nudge)
-- all that is missing would be public 'left' and 'right' accessors. I
don't necessarily need rank functionality.)
On Friday, February 20, 2015 at 10:39:26 AM UTC-5, Michał Marczyk wrote:
clojure:
I'm looking for a LISP-like programming language with a robust library
and multi-platform support for open- and closed-source projects
(scripts, applications, libraries, plug-ins, whatever). Clojure looks
like a good possibility.
It appears that Clojure itself is licensed under
Timothy, I probably haven't thought about this carefully enough yet, but
why do you expect the return value to be ({:x {:y 1}} nil nil) in your test
case?
Why not ({:x {:y 1}} {:x {}} nil) ?
Andy
On Fri, Feb 20, 2015 at 4:13 PM, Timothy Pratley timothyprat...@gmail.com
wrote:
Alex/Rich, if a
Well, you have to read the license, or employ a lawyer to do so.
You mostly can do what you want with Clojure under EPL. You can build
proprietary products with Clojure and distribute them
with or without Clojure itself. The main limitation is that you cannot
distribute a modified version of
You don't need left and right, you can literally use a sorted map / PTM
that looks like {0 :a 3 :a …} as your representation and build a wrapper to
query it appropriately using functions like avl/nearest, but implemented
using first/(r)(sub)seq.
Here's a prototype:
26 matches
Mail list logo