[m-users.] Possiblt stupid list question....

Sean Charles (emacstheviking) objitsu at gmail.com
Wed Dec 22 03:21:06 AEDT 2021


If I have a list of strings I can use

	string.join_list(Separator, Strings)

but if I have a list of things, and I want to separate them all with a list of another thing within the same type…?

I have a formatted output system, it encapsulates text in various type constructors

	t(string)
	tnl(string)
	etc

so given a list

	[ t(“arg1”), t(“arg2”) ]

how do I arrive at

	[ t(“arg1”), t(“, “), t(“arg2”) ]

I COULD introduce a new type constructor called csv() but …. just asking for a friend etc.


Thanks
Sean



More information about the users mailing list