chickadee » arrays » array-bind

(array-bind (x ... . xs) arr xpr . xprs)syntax

This macro allows for general pattern matching of arrays. Binds x ... to the first items of arr and xs to the remaining subarray and executes the body xpr . xprs in this context.

A more featurefull solution would be to use the bindings module:

(import bindings)
(bind-listify* array?
               (lambda (arr) (array-at 0 arr))
               (lambda (arr) (array-drop 1 arr)))

Then you can use bind and friends and freely mix arrays with other sequence types.