dopost
part of wslib
a convenience method for posting large arrays.
also see: dopostln
** does not return the object itself **
dopost ( start, before, after, end )
dopost can be used for every object that responds to do. It posts every object in the array
before / after are strings which are posted before and after every element of the array
start / end are strings which are posted at the start and the end.
by default start, before, after and end are set in such a way, that the posted data is in a regular array syntax, and each object starts at a new line.
#[ a, b, c, d, e ].dopost;
dopost returns an empty string (""), to ensure that the whole array is not posted again when using dopost on a single line evaluation.
You can also provide your own separation strings:
#[ a, b, c, d, e ].dopost( "we have ", " ", " and", ", so that should be enough" );