Set to String Formatting

Prev Next

Introduction

No dedicated formatting template is foreseen for formatting sets. For advanced features to convert sets to strings with opening, closing and separator strings, use the join() function instead.

       echo( str( { 1, true, 'true', {b1, b2, { b2a, b2b }, b3 } } ) );
{1,true,'true',{'b1','b2',{'b2a','b2b'},'b3'}}
Try it yourself: Open LIB_Features_Set_to_string_conversion_and_formatting.b4p in B4P_Examples.zip. Decompress before use.