Re: what's the appropriate way to process inner nested seqs in clojure?

2009-08-16 Thread botgerry
On 8月16日, 下午10时08分, botgerry wrote: > On 8月16日, 下午8时49分, James Reeves wrote: > > > On Aug 16, 10:02 am, botgerry wrote: > > > > 1: searching in a, if find one inner vector includes number 9 then > > > append it a number 13 > > > [[1 2 3 4] [ &qu

Re: A funny thing happened on the way to running Clojure

2009-08-16 Thread botgerry
On 8月16日, 上午8时13分, Waysys wrote: > Today I downloaded Clojure version 1.0.0 as a new Clojure user. I > prepared a .cmd file to run the program. I copied and pasted in the > instructions from the readme file into the .cmd file: > > java -cp clojure.jar clojure.lang.Repl > > (This is also the i

Re: what's the appropriate way to process inner nested seqs in clojure?

2009-08-16 Thread botgerry
On 8月16日, 下午8时49分, James Reeves wrote: > On Aug 16, 10:02 am, botgerry wrote: > > > 1: searching in a, if find one inner vector includes number 9 then > > append it a number 13 > > [[1 2 3 4] [ "ok" "metoo"] [ 5 8 9 ]] => [[1 2 3 4] [ "ok

Re: what's the appropriate way to process inner nested seqs in clojure?

2009-08-16 Thread botgerry
On 8月16日, 下午6时29分, Jarkko Oranen wrote: > I think using a zipper is a good solution but clojure.zip seems only support limit operates,i want it support " mark and merge " functions >You should never use def inside a function. It's a certain sign that >you're doing something wrong. Why don't y

what's the appropriate way to process inner nested seqs in clojure?

2009-08-16 Thread botgerry
Hello,all I'm new to functional programming,want to know how to address nested inner seqs in clojure (def a [[1 2 3 4] [ "ok" "metoo"] [ 5 8 9 ]]) 1: searching in a, if find one inner vector includes number 9 then append it a number 13 [[1 2 3 4] [ "ok" "metoo"] [ 5 8 9 ]] => [[1 2 3 4] [ "o

what's the appropriate way to process inner nested list (or vector) in clojure?

2009-08-16 Thread botgerry
Hello,all new to functional programming, I have one nested dynamic vecter just like this: (def a [[1 2 3 4] ["ok" 89 22] [25 78 99] ...]] it has to support ops: 1* add new item,it's easy: eg. (conj a ["metoo" "oops"] ) 2* insert one element into inner vector based that vector's content,e