If I wanted to output a list, I would use the mapcar lambda combo, but since I just wanted to output it to the command line, I used foreach. Usually I would output a list of (TagName . AttValue). To do that, you would just use something like
(mapcar
'(lambda (x)
(cons (vla-get-TagString x) (vla-get-TextString x))
)
(vlax-invoke BlkObj 'GetAttributes)
)
Hope this is helping.