That explains it. In the type of stuff I write, that possibility wouldn't
arise:
there is no calling code that I can't control, and I definitely want the
ability
to change my wrapper's default.
In any case, I realized the reason your blog code didn't run was an error:
you need to change (apply (yo
Yesyesyesyes! Great idea! I'm on it.
On Sun, Apr 5, 2015 at 4:15 PM, A wrote:
> Please feel free to create something like http://www.clojure-toolbox.com/
> for data science in Clojure, that would be great.
>
> On Sunday, April 5, 2015 at 3:33:11 PM UTC-7, Sayth Renshaw wrote:
>>
>> Would be good
Yep: that won't override the arg if the caller passes it to you as well.
--
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 moderated - please be patient w
In the blog post, tcrayford gives an example of the difficulties in
wrapping a kwargs function:
(defn my-wrapper [& kwargs]
(let [options (assoc (apply hash-map kwargs) :my-default-arg 1)]
(apply (your-api-fn (flatten (into '() options))
Sure, that's convoluted (and I couldn't actually
Awesome, thanks for the help and the clarification!
On Monday, April 6, 2015 at 1:59:21 AM UTC+3, Alex Miller wrote:
>
> Yes, each platform defines their own platform feature so it wouldn't be
> too hard to change the specified platform in the fork. However the key here
> is that the conditional
Please feel free to create something like http://www.clojure-toolbox.com/
for data science in Clojure, that would be great.
On Sunday, April 5, 2015 at 3:33:11 PM UTC-7, Sayth Renshaw wrote:
>
> Would be good to get that on a wiki for all so we could update and share
> as a resourcee.
>
> Sayth
Yes, each platform defines their own platform feature so it wouldn't be too
hard to change the specified platform in the fork. However the key here is that
the conditional occurs at read time, so you need to ensure that compilation
happens with this platform if aot is involved. Maybe that's obvi
On the other hand, Clojure-Android runtime is largely similar to regular
Clojure except for some small differences; so in order to use feature
expressions there effectively it might make sense to wait until broader
capabilities (feature combinations, feature inheritance etc.) is introduced.
--
Well, I must say I'm even more ignorant in how the feature expansions are
implemented. Is the feature a thing that each implementation defines
separately? If so, then it will be easy to set our fork's feature as :clja,
or whatever else. My request to you would then be: can you please include
:c
Actually, in Datomic, the namespaces don't have any special meaning for the
database itself--you can choose to use whatever namespace (or even no
namespace)! Using namespaces is a convention to help you keep track of
which attributes belong to which entities.
We don't use a separate model layer
Would be good to get that on a wiki for all so we could update and share as
a resourcee.
Sayth
On Mon, 6 Apr 2015 at 04:47 Christian Weilbach
wrote:
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> >>
>
> >> http://viewer.gorilla-repl.org/view.html?source=github&;
> user=ghubber&repo=cnc&p
The reader can be invoked programmatically with any feature set you like now.
We did not plan to allow custom features for 1.7.
I'm not sure what it would mean to "add" an android feature? I'll plead
ignorance in not knowing how the Clojure
Android stuff works or where a feature indicating Andr
Hi James,
Interesting library. I have a few comments on the readme.
The simple example is not so simple:
(ns my.app
(:use [ednsl]))
(defn main [& args]
(let [r (-> "config-file.edn" read-file ctx-form
(>>= emap (eithery (etuple ekey (eor (>>- esym eload-sym)
eany)
{:ke
-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
>>
>> http://viewer.gorilla-repl.org/view.html?source=github&user=ghubber&repo=cnc&path=rincanter.clj
>> I am not sure whether this fits the design atm. though. I also
>> had a look at renjin, but I think the native plugins mandate an
>> RVM integra
Hello Alex,
As I've understood from the dev.clojure.org page, additional features and
feature combinations will become available later. Can we please get
:clj/android (or :clja) still in 1.7? If so, what has to be done by me or
Daniel to make it happen?
Thanks!
On Tuesday, March 31, 2015 at 7
>> Thanks, that is an awesome list of resources.
kudos to the respective authors.
-A
--
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 moderated - ple
Thanks a lot James. It seems I completely missed the order of let and doseq.
On Sun, Apr 5, 2015 at 1:12 PM, James Reeves wrote:
> Dereferencing an atom will give you the value of the atom at the time you
> dereferenced it. So at the start of the doseq loop, you deref the atom and
> get back an
Dereferencing an atom will give you the value of the atom at the time you
dereferenced it. So at the start of the doseq loop, you deref the atom and
get back an immutable vector of values. It's the same as writing:
(let [data @a-data]
(doseq [element data]
...))
You dereference
Hi folks
It may seem silly question but why when I doseq over a vector that is
wrapped in an atom and change the vector using swap! while I am inside
doseq, the doseq sets to the beginning of the vector intermittently:
(def a-data (atom [15 9 8 1 4 11 7 12 13 14 5 3 16 2 10 6]))
(defn switch-tw
Thanks, that is an awesome list of resources.
On Sun, Apr 5, 2015, 4:20 AM A wrote:
> Caveats... there is a lot to explore, things are continually changing and
> evolving, I haven't made an exhaustive search, but here is what is quickly
> google-able... YMMV
>
> # Books
> - Eric Rochester: https
I have a question regarding using Datomic from Clojure, but I think it's
more of a Clojure question than a Datomic question
I understand that you must use namespaces in idents for logically distinct
types of entities. (Unless you intend them to be lumped together in the
same index.) Thus the
"find-doc" -> "cider-apropos"
Go through the CIDER readme - it's full of useful tips.
On 5 April 2015 at 12:45, andrea crotti wrote:
> Ah thanks awesome, yes that's true I only have to get used to the Cider.
> The only thing is not also in Cider then would be "find-doc"?
>
> And in general, wha
Ah thanks awesome, yes that's true I only have to get used to the Cider.
The only thing is not also in Cider then would be "find-doc"?
And in general, what would be the best way to add some extra
customization to how the Cider repl works?
2015-04-05 9:46 GMT+01:00 Bozhidar Batsov :
> Maybe reply
Relevant bit of code here:
https://github.com/trptcolin/reply/blob/69c4c6ffe0c8903a193c1e127337832e225335b0/src/clj/reply/initialization.clj#L179
Jony
On Sunday, 5 April 2015 09:47:04 UTC+1, Bozhidar Batsov wrote:
>
> Maybe reply interns `clojure.repl/doc` in every namespace. I can tell you
>
Maybe reply interns `clojure.repl/doc` in every namespace. I can tell you
for a fact that in CIDER the `clojure.repl` functions are interned only in
the "user" namespace. We can always change this, but it doesn't make a lot
of sense. CIDER users normally never use functions like "doc" as they have
Hi guys, one question about the Repl and Cider.
When I start the Repl with "lein repl", I am in the namespace "x.y",
and if I do "(doc swap!)" I see the documentation showing up.
If instead I start the repl with Cider, it looks like I'm in the same
namespace, however "(doc swap!)" doesn't work, b
Caveats... there is a lot to explore, things are continually changing and
evolving, I haven't made an exhaustive search, but here is what is quickly
google-able... YMMV
# Books
- Eric Rochester:
https://www.packtpub.com/big-data-and-business-intelligence/mastering-clojure-data-analysis
and
27 matches
Mail list logo