Hi guys, Does anyone know how to properly deal with refs in core.typed? I
am running into trouble. When I try to do stuff like this:
(ann my-ref (Ref1 (U Kw nil)))
> (def my-ref (ref #{}))
I get this error:
> IllegalArgumentException No value supplied for key: true
> clojure.lang.Persistent
Thanks Di Xu. Good to know. I have joined the core.typed group and will
post my questions there from now on.
J
On Friday, December 12, 2014 11:41:43 PM UTC-6, Jesse wrote:
>
> Hi guys, Does anyone know how to properly deal with refs in core.typed? I
> am running into trouble. When I
.
https://gist.github.com/gamma235/4ea0d7a0d0efb8d4399f
Thanks ahead of time!
Jesse
--
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 moderate
am updating the
gist now, and will also add the stack-trace in a comment underneath it. I
think the problem is coming when, during the move function execution, the
atom gets updated and subsequently re-calls the *move-elevator* function,
again and again with each update, making a smorgasbo
On Thursday, May 22, 2014 8:17:51 PM UTC+9, Jesse wrote:
>
> Hey guys, I am trying to build a program that can instruct a single
> elevator, 2 floor system how to behave based on the state of an atom that
> is being constantly checked for updates by a loop. The state of the atom a
I have got in a shape where it works fine, but with slightly unusual
behavior. I am looking for advice on refactoring, So if someone could
please have a look.
https://gist.github.com/gamma235/4ea0d7a0d0efb8d4399f
Jesse
On Thursday, May 22, 2014 8:25:39 PM UTC+9, Rob Day wrote:
>
:
---
file.patterns.lisp=*.lsp;*.lisp;*.clj
command.go.$(file.patterns.lisp)=java -cp /home/jesse/clojure/
clojure.jar clojure.lang.Script "$(FilePath)"
--
(change the path as appropriate of course)
The syntax highlighting is kind of crude since it's meant for lisp,
but th
It would be nice if someone updated the wiki with a new example.
I don't understand how the gen-class stuff is supposed to work.
Why doesn't the following work?
(gen-class
:name MyException
:extends [Exception])
(defn user-exception-test []
(try
(throw (new MyException "msg: user excepti
Here in the wiki:
http://en.wikibooks.org/wiki/Clojure_Programming/Concepts#Libraries
The examples make use of the clojure/ns command, for example:
(clojure/ns example.ourlib)
I had to get rid of the "clojure/" part to make it work. Is the wiki
wrong? If so, could somebody update it?
--~--~
I notice the front page of the wiki has had some changes awaiting
review:
http://en.wikibooks.org/wiki/Clojure_Programming
Apparently they've been waiting for almost a month now?
I also noticed this comment on the discussion page:
"The approved revision mechanism is killing this wiki. I'm avoid
I'm trying to re-implement some python stuff in clojure. Here's how
it works: I have a class called ArrowKeySelection. I use this class
as a mixin with various gui classes. The class adds some abstract
logic for handling keys - the arrow keys move a selector around a
matrix and the enter key
I'm trying to port some Python code to Clojure. I'm new to functional
programming and I hit a function that is causing my brain to melt.
The python function looks something like this:
def build_table():
num_cols = 3
selected_row = 0
selected_col = 0
strings = ["cat", "dog", "",
Alright, I got it working. Thanks for the replies.
--~--~-~--~~~---~--~~
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
To unsubscribe from this group, send e
> Jesse,
> Could I see your own version.
Haha, I was afraid someone would say this.
Here is my embarrassingly bad (but working) version:
(defn build-table []
(def num-cols 3)
(def selected-row 0)
(def selected-col 0)
(def all-strings ["apple" "cat" "dog
[:font {:color "#cc"} (subs cell 0 1)]
> (subs cell 1)])])]))
>
> (defn make-grid [col-size data]
> (partition col-size
> (filter #(not= % "") data)))
>
> (print-table
> (make-grid 3 ["cat" "dog" "" "rab
iar language.
>
Some similar work has been with قلب. It's a Scheme-like language
written entirely in Arabic. Article about the language:
http://www.theregister.co.uk/2013/01/25/arabic_programming_language
GitHub repo:
https://github.com/nasser/---
Jesse
--
You received this messa
https://www.eventbrite.com/e/funding-circle-speaker-series-zach-tellman-
clojure-and-financial-tech-tickets-19000393689
Register now, Spots going fast!
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@goog
17 matches
Mail list logo