- as-vector variable variables/valuesprocedure
Returns a vectir represented by the request variables/values for the given variable. The request representation for vectors is variable.numeric-index=value. Example: foo.0=1 would result in #("1") for the foo variable.
Example:
;; considering a http://server:port/path?foo.0=a&foo.1=b (let (($ (request-vars))) ($ 'foo as-vector)) ;; => #("a" "b")
as-vector returns #f when the wanted variable is not sent in the request or it is sent not in the dot notation (e.g., foo=0).
If the vector represented by the request is sparse, the missing items are unspecified values.