Blob


1 I had this piece of data
3 ``` common-lisp
4 (("12345" (("Content-Disposition" "form-data" (("name" . "code"))))))
5 ```
7 and I wanted to extract the cons with “name” and “code”. Armed with my ‘a’s and ‘d’s I wrote (interactively, one letter at a time)
9 ``` common-lisp
10 (caaddr (caadar thing))
11 ```
13 then I though “two function call is too much”
15 ``` common-lisp
16 (caaddaadar thing)
17 ```
19 but ‘caaddaadar’ doesn’t exists.
21 Life sucks even more now.
23 ---
25 P.S.: yeah, I was trying to extract data from the output of rfc2388:parse-mime.
27 P.P.S.: yeah, I was trying to extract the wrong thing: “code” is the input name and “12345” is the value.
29 P.P.P.S.: yup, eventually I replaced that with trivia (pattern matching.)