Uploaded image for project: 'Clojure'
  1. CLJ-115

GC Issue 111: Enable naming an array parameter for areduce

    Details

    • Type: New Feature
    • Status: Open
    • Priority: Major
    • Resolution: Unresolved
    • Affects versions: None
    • Fix versions: Backlog
    • Labels:
      None

      Description

       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=%2Fgroup%2Fclojure%2Fbrowse_frm%2Fthread%2F40597a8ac322bc37%2F8cf6b17328ea7e8b%3Ftvc%3D1%26pli%3D1%26#doc_9ea7e3c5d500ed3c
      
      

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              alex+import import
            • Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

              • Created:
                Updated: