Re: destructuring let and for

2014-06-11 Thread Francesco Lunelli
However, this approach is only useful in simple > examples like this, since any real data set would be too large to write > code for every connection. Instead, the actual data (coming from a csv > file, or something) would be read and used to create the connections. > > What does

Re: destructuring let and for

2014-06-10 Thread Francesco Lunelli
the-list)), m (range (inc n) (count the-list))] > (let [page1 (page-fn (nth the-list n)) > page2 (page-fn (nth the-list m)) > rel (nrl/create conn page1 page2 :links)] > ;; do something with rel > )) > > The general idea here is to use an arbitra

Re: destructuring let and for

2014-06-10 Thread Francesco Lunelli
this example explain better my needs. Thanks in advance Francesco On Tuesday, June 10, 2014 6:11:16 PM UTC+2, James Reeves wrote: > > Could you explain a little more what your end goal is? > > It sounds like you want a map, but without knowing more about the purpose, > it's

destructuring let and for

2014-06-10 Thread Francesco Lunelli
Hello everybody, I have a newbie question about destructuring and assigning and didn't find an answer in documentation or books. I have a list that contains an arbitrary number of elements for example '("one" "two" "three" ...) I now only that elements are strings. I need to to take every eleme