tag:blogger.com,1999:blog-8721738246539687228.post5860038454950470888..comments2023-09-30T05:33:40.993-05:00Comments on Kaizen: SnippetsMyles Megyesihttp://www.blogger.com/profile/06006852692314796110noreply@blogger.comBlogger2125tag:blogger.com,1999:blog-8721738246539687228.post-30865858190250651292011-11-14T14:51:55.137-06:002011-11-14T14:51:55.137-06:00That's a good point about not needing the part...That's a good point about not needing the partial. However, I did choose not to use concat because it does not maintain the type of coll:<br /><br />user=> (concat [1 2] [3 4])<br />(1 2 3 4)<br /><br />In my case, I needed to append two vectors and have a vector returned. I could just cast the result to a vector, but that seemed like overkill.Myles Megyesihttps://www.blogger.com/profile/13307572828302274128noreply@blogger.comtag:blogger.com,1999:blog-8721738246539687228.post-16775189111270296552011-11-14T14:39:28.001-06:002011-11-14T14:39:28.001-06:00Interesting idea about the snippet library. On th...Interesting idea about the snippet library. On the topic of included snippet, there are other, potentially simpler ways to do what you're doing:<br /><br />; the partial is not needed<br />(apply conj coll x)<br />; or even simpler<br />(concat coll x)Micahhttps://www.blogger.com/profile/15066700075031730332noreply@blogger.com