Quote:
Originally Posted by Lys
|
At a quick glance, the examples in these threads are trying to do a bit of extra stuff and so the author abbreviation gets lost in a bit of noise. Here's a template I just came up with which seems to work:
Code:
program:
result = '';
for a in 'author_sort' separator '&':
result = list_join(', ', result, ',', substr(a, 0, 1), ',')
rof
The for loop's value is the value of the last top expression in it, which for an assignment is the assigned value, in this case the final value of result. This will not return a value with a spurious comma at the end of the list, which I was getting when trying something similar using strcat().