Re: difference between first & peek; rest & pop

2017-11-09 Thread Ethan Brooks
Also, pop throws an exception on the empty list whereas rest returns (). On Thursday, May 30, 2013 at 12:43:14 AM UTC-4, Seven Hong wrote: > > Hi all, > > Could some one explain what's the difference between first and peek, rest > and pop? For me it looks like they behave exactly same on sequence

Re: Hiring Clojure developers for our distributed team at Outpace Systems

2014-02-19 Thread ethan
can see some of my Clojure work on github (github.com/ECAllen). I also have private repositories with more Clojure work. If you are interested my skype name is ethan_allen_ Thanks Ethan On Feb 19, 2014 9:41 AM, "Paul Stadig" wrote: > Hey everyone, > A couple of months ago Alexey

Re: Improved Error Messages - Part XXXVIII

2009-06-25 Thread Ethan Herdrick
I think it's important that Clojure be good at exploring Java libraries. Helpful and correct error messages are important for this. I often go looking for a function at the REPL, like so: user=> substring java.lang.Exception: Unable to resolve symbol: substring in this context (NO_SOURCE_FILE:

Re: Why aren't lists callable?

2009-01-14 Thread Ethan Herdrick
Makes sense, but (#{:a :b :c} :b) doesn't return 'true', it returns :b. So it's not really acting like an object to boolean mapping. Doesn't much matter, though. By the way, I'd like to see map-map in the core. -Ethan On Jan 12, 5:30 pm, Stuart Sierra wr

Re: Why aren't lists callable?

2009-01-12 Thread Ethan Herdrick
Then why are sets callable? Not that I'm complaining - I found it handy, then came to wonder why lists aren't. -Ethan > I'd just like to add to this discussion that maps and vectors are > functions not just because it's neat or possible, with the > implementation o

Why aren't lists callable?

2009-01-11 Thread Ethan Herdrick
Why aren't all sequences callable, i.e. why don't they all implement IFn? I'd like to use lists like this sometimes. --~--~-~--~~~---~--~~ You received this message because you are subscribed to the Google Groups "Clojure" group. To post to this group, send email

Re: re-seq and other functions

2008-12-12 Thread Ethan Herdrick
Right, the outer parenthesis denote a list. That list contains only one element. The element is the vector ["qui" "ui" "i"] On Thu, Dec 11, 2008 at 9:43 PM, Stephen C. Gilardi wrote: > > In the latter case the result is a seq containing a single element: > the vector. There is nothing to sort/

Re: quit

2008-11-30 Thread Ethan Herdrick
It's very handy to be able to type in a symbol at the REPL and see its value. On Sun, Nov 30, 2008 at 10:15 AM, Mark Volkmann <[EMAIL PROTECTED]> wrote: > > On Sun, Nov 30, 2008 at 10:35 AM, Paul Barry <[EMAIL PROTECTED]> wrote: >> >> It's a minor thing, but wouldn't it be a good idea to put (de

Re: Poll: Which clojure.contrib libs should be bundled with Clojure?

2008-11-26 Thread Ethan Herdrick
Seconded. As far as I can tell all you can do is go to Sourceforge and poke around in the source code: http://clojure-contrib.svn.sourceforge.net/viewvc/clojure-contrib/trunk/src/clojure/contrib/ On Wed, Nov 26, 2008 at 12:26 AM, Ralf Bensmann <[EMAIL PROTECTED]> wrote: > ? > > On Mon, Nov 24, 2

Re: learning clojure

2008-11-24 Thread Ethan Herdrick
For the File / IO things, skip the Java libs - they are pretty low level. Go with the Jakarta Commons libs: http://commons.apache.org/io/description.html , as Stuart has recommended elsewhere. On Mon, Nov 24, 2008 at 6:48 AM, Stuart Sierra <[EMAIL PROTECTED]> wrote: > > It's useful to know the s

Re: Looking for the inverse of slurp

2008-11-16 Thread Ethan Herdrick
uot;) > -Stuart > > On Nov 16, 9:18 am, Stuart Halloway <[EMAIL PROTECTED]> wrote: > > > Hi Ethan > > > spit is in Clojure-contrib. I wouldn't expect Clojure to support OS- > > specific idioms like ~, because Java doesn't. > > > Stuart > > &

Looking for the inverse of slurp

2008-11-16 Thread Ethan Herdrick
Has the inverse of slurp been added to the core libraries yet? Like this: (spit "Some text" "/foo.txt") to make a file called 'foo.txt' containing "Some text". By the way, it appears that Clojure (or Java) doesn't recognize ~, as in (slurp "~/foo.txt"). True? --~--~-~--~~