Welcome! Please see the About page for a little more info on how this works.

0 votes
in Clojure by

`
Reported by bo...@boriska.com, Apr 28, 2009

Currently there is no way to access anonymous array parameter of areduce.

Consider:

(areduce (.. System getProperties values toArray)

 i r 0 (some_expression))

some_expression has no way to access the array.

Per Rich:

Yes, areduce would be nicer if it looked like a binding set:

(areduce [aname anarray, ret init] expr)
(areduce [aname anarray, ret init, start-idx start-n] expr)
(areduce [aname anarray, ret init, start-idx start-n, end-idx end-n]

expr)

This was discussed here:
http://groups.google.com/group/clojure/tree/browse_frm/thread/40597a8ac322bc37/8cf6b17328ea7e8b?rnum=1&_done=/group/clojure/browse_frm/thread/40597a8ac322bc37/8cf6b17328ea7e8b?tvc=1&pli=1&#doc_9ea7e3c5d500ed3c

`

3 Answers

0 votes
by

Comment made by: importer

richhickey said: Updating tickets (#8, #19, #30, #31, #126, #17, #42, #47, #50, #61, #64, #69, #71, #77, #79, #84, #87, #89, #96, #99, #103, #107, #112, #113, #114, #115, #118, #119, #121, #122, #124)

0 votes
by

Comment made by: importer

Converted from http://www.assembla.com/spaces/clojure/tickets/115

0 votes
by
Reference: https://clojure.atlassian.net/browse/CLJ-115 (reported by alex+import)
...