Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-16 Thread Joe R . Smith
FWIW, the same is true for the inverse operation.  If you pop an item off a list you’ll get the list, less the item you conj’d. Same is true with a vector.  --- Joe R. Smith j...@uwcreations.com @solussd On Jul 16, 2018, at 4:31 PM, Alex Miller mailto:a...@pureda

Clojurists Together Q3 2018 Call for Proposals (Closes July 20)

2018-07-16 Thread Daniel Compton
Hi folks Clojurists Together is an organisation dedicated to funding critical open source Clojure projects. We fund projects on a 3-month cycle. Funding varies based on member support, but in our previous cycles we have been able to fund clj-http, Figwheel, ClojureScript, and CIDER $1800USD/mo eac

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-16 Thread Alex Miller
On Monday, July 16, 2018 at 4:08:47 PM UTC-5, solussd wrote: > > Another way to think about it is lists and vectors are different and the > idiomatic way to add items to them is different. > I would say different data structures have different ways to *efficiently* add items to them, and conj

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-16 Thread Joe R . Smith
Another way to think about it is lists and vectors are different and the idiomatic way to add items to them is different. A (singly-linked) list is usually prepended to (otherwise you have to walk the entire list to find the end). A vector is usually added to at it’s n+1 index, where n is the si

Re: OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-16 Thread Alex Miller
On Monday, July 16, 2018 at 3:21:02 PM UTC-5, Christian Seberino wrote: > > I'm impressed with Clojure syntax and I'm still a beginner. > > I noticed conj behaves differently for lists and vectors. I also noticed > cons does not return a vector for a vector input. > It might be worth checking

OK idea to replace conj and cons with "prepend" and "append" macros that have consistent behavior and return same types as args?

2018-07-16 Thread Christian Seberino
I'm impressed with Clojure syntax and I'm still a beginner. I noticed conj behaves differently for lists and vectors. I also noticed cons does not return a vector for a vector input. Is there any downside to make 2 macros...prepend and append that behave the same for lists and vectors, and als

Re: Some Seesaw Questions

2018-07-16 Thread skf . phoenix
Hi Matching Socks. I will look at seesaw-clj group. Thank you. On Saturday, July 14, 2018 at 11:03:37 AM UTC+1, Matching Socks wrote: > > You might get a more accurate or precise answer from the seesaw-clj > group. In indirect & partial answer to one-third of your questions: As I > recall, i