>
> The only function I could find that takes a vector and returns a list
> instead of a vector or a sequence is the reverse function. Are there
> others?
Map and other lazy functions currently return a LazySeq -
(map #(+ %) [1 2 3]) => (2 3 4)
cons currently returns a Cons type -
(cons 0 [1 2
On Mon, Mar 2, 2009 at 8:45 PM, MikeM wrote:
>
>> At the end of the Vectors section I say this:
>> "All the code examples provided above for lists also work for vectors."
>>
>> Do you think I should provide more detail than that?
>
> I missed that sentence. I think it's helpful to know that some
On Tue, Mar 3, 2009 at 6:22 AM, Rich Hickey wrote:
>
> On Mar 2, 8:40 pm, Mark Volkmann wrote:
>> On Mon, Mar 2, 2009 at 7:05 PM, Chouser wrote:
>>
>> > On Mon, Mar 2, 2009 at 7:53 PM, Mark Volkmann
>> > wrote:
>>
>> >> Currently what the article says about Vectors is "They are ideal when
>>
On Mar 2, 8:40 pm, Mark Volkmann wrote:
> On Mon, Mar 2, 2009 at 7:05 PM, Chouser wrote:
>
> > On Mon, Mar 2, 2009 at 7:53 PM, Mark Volkmann
> > wrote:
>
> >> Currently what the article says about Vectors is "They are ideal when
> >> items need to be retrieved by index, but not efficient whe
> At the end of the Vectors section I say this:
> "All the code examples provided above for lists also work for vectors."
>
> Do you think I should provide more detail than that?
I missed that sentence. I think it's helpful to know that some
functions return a list type when given a vector, o
On Mon, Mar 2, 2009 at 7:05 PM, Chouser wrote:
>
> On Mon, Mar 2, 2009 at 7:53 PM, Mark Volkmann
> wrote:
>>
>> Currently what the article says about Vectors is "They are ideal when
>> items need to be retrieved by index, but not efficient when new items
>> need to be added or removed quickly."
On Mon, Mar 2, 2009 at 7:53 PM, Mark Volkmann wrote:
>
> Currently what the article says about Vectors is "They are ideal when
> items need to be retrieved by index, but not efficient when new items
> need to be added or removed quickly." It doesn't distinguish between
> the working in the middle
On Mon, Mar 2, 2009 at 5:42 PM, Rich Hickey wrote:
>
> On Mar 2, 3:37 pm, Mark Volkmann wrote:
>> On Mon, Mar 2, 2009 at 2:11 PM, MikeM wrote:
>>
>> > I read the part of your article (on lists and vectors) that you linked
>> > to in another thread -
>>
>> > In the list section you show the func
On Mar 2, 3:37 pm, Mark Volkmann wrote:
> On Mon, Mar 2, 2009 at 2:11 PM, MikeM wrote:
>
> > I read the part of your article (on lists and vectors) that you linked
> > to in another thread -
>
> > In the list section you show the function into and conj as applied to
> > lists, but these can al
On Mon, Mar 2, 2009 at 2:11 PM, MikeM wrote:
>
> I read the part of your article (on lists and vectors) that you linked
> to in another thread -
>
> In the list section you show the function into and conj as applied to
> lists, but these can also be applied to vectors and will return
> vectors,
>
I read the part of your article (on lists and vectors) that you linked
to in another thread -
In the list section you show the function into and conj as applied to
lists, but these can also be applied to vectors and will return
vectors,
(into [1 2 3] [4 5]) => [1 2 3 4 5]
(conj [1 2 3] 4 5) => [
Article is a great introduction and reference to clojure.
It could serve as _the_ documentation, maybe even distributed with
clojure itself.
I like the fact that it has "right" code to txt ratio.
The only things missing is better organization (chapters hierarchy)
and syntax highlight of code.
Tha
Looks very nice. I like the code to text ratio, it's denser than most
texts that I see of this nature. Great job!
On Feb 28, 1:27 pm, Mark Volkmann wrote:
> I've written anarticleonClojure. Seehttp://ociweb.com/jnb/jnbMar2009.html.
>
> The goal of thisarticleis to provide a fairly comprehensiv
I'm in the process of learning Clojure so this article has already
helped me quite a bit (about half done with it). Bookmarked. Thanks
Mark for the work.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
"Clojure" gr
Thank you. Now I have something to link friends too when they ask
about Clojure.
Mark Volkmann wrote:
> I've written an article on Clojure. See http://ociweb.com/jnb/jnbMar2009.html.
>
> The goal of this article is to provide a fairly comprehensive
> introduction to the Clojure programming langua
15 matches
Mail list logo