Put another way, how could someone write an APPLY-TO-VECTOR function? This would work something like this:
- Code: Select all
(apply-to-vector #'+ (vector 1 2 3 4))
Would you have to cons up a new list that holds a vectors contents, then use APPLY? Or could you do something that uses the vector directly.
I'll leave it at that, but has anyone else thought about this? Anyone know if/how this can be done?