Hi everybody, I need implement this java code in clojure
public class MyWindow extends Window
{
public MyWindow()
{
super("My Window!");
}
}
MyWindow myWindow = new MyWindow();
unfortunately the clojure documentation for generate classes is
erstanding is that proxy is not quite as performant as
> reify/defrecord, but it's the only game in town if you actually want to
> subclass something.
>
> Hope this helps =)
>
> On Fri Jan 30 2015 at 3:05:11 PM coco > wrote:
>
>> Hi eve
Sorry for don't reply before, thanks so much michael, that works...and gary
for the explanation, now it's much more clear to me...thanks guys
El viernes, 30 de enero de 2015, 18:35:02 (UTC-4:30), coco escribió:
>
> Hi everybody, I need implement this java code in clojure
>
Hi guys, first I'm really noob using macros, basically I've this
( correct
address
res)))
I add this to gist https://gist.github.com/anonymous/9fc79679e17e36c47994
when I try run it I get: CompilerException java.lang.IllegalArgumentException:
Unable to resolve class
>
> sorry for my crappy code, but I was changing some conditions and testing my
> parameters before and I end with this code
>
> (if (not (false? res))
res
(recur))
I must write just
(if res
res
(recur))
--
You received this message because you are subscribed to the Google
>
> All your macro needs to do is to convert the first form into the second.
> thanks james, that make sense for me...
>
I don't know what the rest of your function is supposed to be doing
you can check my second example
(def data (atom ""))
(defmacro blahhh []
(go
(let [ch (
Sure, because you haven't quoted the symbol. If you write:
>
> (str *ns* ":" some-bus)
>
> ups!!, yes I forget quoted the symbol, thanks james!!...
In Clojure, then Clojure will look for a variable called "some-bus". The
> error you get is because it can't find such a variable.
>
> You
Hi guys, I'm curiouss if its possible use avian or robovm for distribute
binary desktop executables for linux,mac or windows...seems to be possible
https://news.ycombinator.com/item?id=7579737 , http://labb.zafena.se/?p=673
but I've not found so much information about it :S..
I think than it wou
apps
but the low startup and how heavy the jvm is makes me rethink it again
:D...hope someone has experience with robovm and clojure.
El domingo, 15 de marzo de 2015, 2:28:42 (UTC-4:30), skuro escribió:
>
> Hi coco,
>
> I tried with Avian, and unfortunately there's quite
Hi guys, I'm curious about how work some codes with binding and dynamics
vars, for instance, in sqlkorma you define your db settings
(defdb prod (postgres {:db "korma"
:user "db"
:password "dbpass"}))
and then you can use other functions like this
Hi guys, I'm curious about how work some codes with binding and dynamics
vars, for instance, in sqlkorma you define your db settings
(defdb prod (postgres {:db "korma"
:user "db"
:password "dbpass"}))
and then you can use other functions like this
(select user
(with address)
(fields :firstName :
Hi guys...I've a code similar to this:
(defn user-data []
(!/go
(let [a (!/http://groups.google.com/group/clojure?hl=en
---
You received this message because you are subscribed to the Google Groups
"Clojure" group.
To unsubscribe from this group and stop receiving emails from i
closest equivalent to Rx’s complete event is that a channel is closed
> (in which case anything blocked or parked on that channel will receive nil
> ).
>
> e
>
>
> On Wed, Mar 25, 2015 at 12:08 AM, coco > wrote:
>
>> Hi guys...I've a code similar t
Hi..I've a little problem using recur for recursive calling...I'm
trying do the clojure koans and the recursive reverse function
[1 2 3 4] -> '(4 3 2 1)
first I try this code:
(defn recursive-reverse [coll]
(loop [col coll mem '()]
(if (empty? coll)
mem
((cons (last col) mem)
n Corfield wrote:
> On Tue, Nov 22, 2011 at 8:49 PM, coco wrote:
> > ((cons (last col) mem)
> > (recur (butlast col) mem)
> ...
> > ((cons (last col) mem)
> > (recur col mem)
>
> In both of these, you have a function call with (cons (
now I'm in a similar trouble...I'm trying resolve the problem 31 from
4clojure ...It says:
Write a function which packs consecutive duplicates into sub-lists.
[image: test not run]
(= (__ [1 1 2 1 1 1 3 3]) '((1 1) (2) (1 1 1) (3 3)))
I know than I can use identity and others clojure functions b
yep..that is an error but (recur (rest rst) I think wouln't work...maybe
something like
(defn packing [lista]
(loop [[fst snd :as all] listamem []tmp '(fst)]
(print "all is "all "\n\n") ;;something is wrong...all always is
a empty list
(if (seq? all)
(if
Hi everybody...I'm interested in learning clojure but there're only a
few books and more focused to advanced programmers...I found today a
nice book about Clisp but I don't know how different is itplease
can tell if can be recommendable learn first Clisp with a easy follow
book..or if there ar
18 matches
Mail list logo