Thanks @Gunnar and @barnardH For this time i have been asking you to look at code and find performance points which is not that good way. so i think i better start asking specific questions how dump it may sound : [ i m a newbie ]
I hope that normal things that i know about list and vectors hold with clojure DS too. Q1. I am using (drop some-number list) some time in my code. It should be slower for list . Is that true ? Would that be fast for vector ? Q2. doing (drop and (drop-while makes (pop to break .. Is there a way to do work of drop in other way ? Q3. using vector for my stack , since it adds at last, doing (map with that would not work as map takes from starting. doing (reverse would be bad in my view for vector, as it says it is non lazy.. Is there a way to start making map and reduce work from end of vectors Q3. Important Question : I have two lists and with map i can get a tuple of each of their elements. like with (map list '(:a :b :c :d) '(0 1 2)) => '((:a 0) (:b 1) (:c 2)) my problem is that for some keyword i want that for some keyword say :b it should not take from second map and insert some default value like '((:a 0) (:b 100) (:c 1) (:d 2)) How to do this ? This problem is coming for unary operators - (minus) Q. I am unable to make the memoized work for unboxed values. How is it possible ? i tried something before reading the memoize doc and then realized that it returns function. memoize my try : https://gist.github.com/ashishnegi/ef3c65182c09c154126b#file-shunting-algo-clj-L28 @barnardH my camelCaseFunctionNames is reason for my muscle memory after years of programming in c++ :) would take some time. @Gunnar I checked with your changes but unfortunately, (or fortunately so as to keep learning going) they are not enough. -- 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 Note that posts from new members are moderated - please be patient with your first post. To unsubscribe from this group, send email to clojure+unsubscr...@googlegroups.com For more options, visit this group at http://groups.google.com/group/clojure?hl=en --- You received this message because you are subscribed to the Google Groups "Clojure" group. To unsubscribe from this group and stop receiving emails from it, send an email to clojure+unsubscr...@googlegroups.com. For more options, visit https://groups.google.com/d/optout.