This may not be important for your application, but if what you want in the
returned sequence are strings, and if you expect to deal with Unicode
characters that are not in the Basic Multilingual Plane (BMP) set, then
note the following differences.
(map str s) will return a separate string for ea
Hi,
My question is about design of libraries for ClojureScript.
So for ex, there is clojure.test which has some public API. Now assume one
has used it and is comfortable with its API.
Now he has to write some ClojureScript code and wants to write some unit
tests as well.
Obviously, he'll use s
I am running ui.clj , this is my commands and error mgs.
I can access the mysql data for these datasets but when I try to
load ui and am confused ???
Thanks for any help
(def conn-str
"SERVER=localhost;DATABASE=clr_demo_4;UID=root;PASSWORD=pass;")
==
Clo
On Fri, Jan 13, 2012 at 6:41 PM, wrote:
> When I run leiningen , I can execute lein within any folder. For instance I
> have a folder c:\projects, i run lein new abc. I then have a folder "abc"
> that is created ,and all the projects files are stored within folder "abc".
As far as I can know, Le
On 14 January 2012 23:34, myriam abramson wrote:
> I couldn't find quite the equivalent to read-lines from duck-streams. I
> found read-line but it's not the same. Where is the equivalent read-lines
> outside of clojure.contrib?
There's clojure.core/line-seq, but it doesn't close the reader when
I couldn't find quite the equivalent to read-lines from duck-streams. I
found read-line but it's not the same. Where is the equivalent read-lines
outside of clojure.contrib?
On Fri, Jan 13, 2012 at 9:51 PM, Stephen Compall wrote:
> On Fri, Jan 13, 2012 at 11:47 AM, wrote:
> > Warning: *default
that is exactly what i was looking for ! thanks!
On Jan 14, 1:33 am, Baishampayan Ghose wrote:
> Something like (:arglists (meta #'my-func)) ?
>
> Regards,
> BG
>
>
>
>
>
>
>
>
>
> On Sat, Jan 14, 2012 at 12:01 PM, Andrew Xue wrote:
> > given something like
>
> > (defn my-func [a b c] (str a b c
looks like there will be some macro related work which is one of the
things i wanted to look into. i wrote a simple expression (+,-,*,/) and
a creole parser in scala once and spent 2 years on a fps shooter (hello
vector math) so i am not completely lost here :)
did you upload your stuff to github
I written a profile tool for clojure STM,it statistics all
transactions information such as execution times,execution cost,the
retry reason and times etc.
If you are interested in it,please check it on github:
https://github.com/killme2008/stm-profiler
It's just a try to profile STM,if you have
this seems easier...
user=> (map str "abc")
("a" "b" "c")
Though the original question says a list to a string and the example shows a
string to a list (of symbols)
user=> (apply str ["a" "b" "c"])
"abc'
But, the example is looks like it wants
user=> (map (comp symbol str) "abc")
(a b c)
Hop
You can do this
> ((comp #(map str %) seq) "abcdef")
("a" "b" "c" "d" "e" "f")
2012/1/15 Bruce Durling
> Sam,
>
> Strings can be turned into sequences with seq.
>
> > (seq "foo")
> (\f \o \o)
>
> The backslashes are because f o and o are character literals.
>
> cheers,
> Bruce
>
> On Sat, Jan 14
Sam,
Strings can be turned into sequences with seq.
> (seq "foo")
(\f \o \o)
The backslashes are because f o and o are character literals.
cheers,
Bruce
On Sat, Jan 14, 2012 at 10:13, Samuel Lê wrote:
> Hi,
>
> I was wondering if there was a function to convert a list into a string,
> somethi
Hi,
I was wondering if there was a function to convert a list into a string,
something like:
(string-to-list "abcde") ;; (a b c d e)
thanks!
Sam
--
You received this message because you are subscribed to the Google
Groups "Clojure" group.
To post to this group, send email to clojure@googlegr
Thanks! Yes, that was exactly the problem.
And... apologies. On reading the wiki page again, it's very clear.
On Jan 13, 4:04 pm, Brenton wrote:
> You are trying to evaluate ClojureScript in a Clojure REPL.
>
> The easiest way to get a ClojureScript REPL is to run:
>
> script/cljs-repl
>
> If y
Hi there,
I was just looking for someone like you.
I have started to develop a mathematica clone in clojure (OK, I started.
For now it calculates the derivatives and does a bit of expression
simplification). For now I have couple of function that I test on the REPL.
I was trying to write a command
On Sat, Jan 14, 2012 at 2:44 PM, Alex Baranosky
wrote:
> If you can help with any of Midje's issues that would be greatly
> appreciated. It is a pretty large code-base, but likely won't make you any
> money.
>
> www.githib.com/marick/midje
githib, eh? ;) probably meant https://github.com/marick/
How about a native I/O library that'll detect the platform and architecture at
runtime? Something like java 1.7's nio, but they'll work on clojure hosted on
1.5.x? Make use of JNA to make native calls to get file system details, etc.
Right now you cannot even stat a file from clojure without ca
On 01/14/2012 01:12 PM, Dennis Haupt wrote:
clojure has caught my interest. in general, high level programming has.
i played around with clojure a bit and would like to get something done
that has at least some purpose. are there any small/new projects looking
for help?
Not a currently existin
If you can help with any of Midje's issues that would be greatly
appreciated. It is a pretty large code-base, but likely won't make you any
money.
www.githib.com/marick/midje
Please feel free to add your 2 cents to the conversation in the issues
section as well.
Pull requests are always appreci
Hi guys,
I don't know how the validations for this are done, but in this case I can
think on a naive check for the usage of a banned function. I think a regex
can do it. Something that look for* (count\s*+*
*
I know maybe there are more edges cases but I don't think it'll be much
than that. I unde
hi there,
i am looking for something to do, preferably something that makes me
rich, but that is not a must have - if it's interesting, i'll code for free.
i can offer almost 15 years of coding experience (important: while being
open minded the whole time). i am a one man army, if you will :)
(pr
> If you wish to call .getTime instead, you'll have to invoke it thusly
> - (. (js/Date.) (getTime))
It works. Thank you!
Regards,
Shantanu
--
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
> I am trying to write a CLJS (0df1bc4d7b) function that finds out the
> current system time in milliseconds, equivalent of (System/
> currentTimeMillis) in Clojure:
>
> (ns foo)
>
> (defn now []
> ;; new Date().getTime()
> (.getTime (js/Date.)))
>
>
> This displays the following when displayed u
Hi,
I am trying to write a CLJS (0df1bc4d7b) function that finds out the
current system time in milliseconds, equivalent of (System/
currentTimeMillis) in Clojure:
(ns foo)
(defn now []
;; new Date().getTime()
(.getTime (js/Date.)))
This displays the following when displayed using JavaScri
24 matches
Mail list logo