Returns the components of the supplied item. The function returns one result for each component. The function understands many different types of argument, as described below:
:-) explode( { 1, 2, 3 } );
There are 3 results
1
2
3
:-) explode( newMap( "hello" ==> "there", "whats" ==> "that" ) );
There are 2 results
"there"
"that"
:-) var map = newMap( "hello" ==> "there", "whats" ==> "that" );
There are 0 results
:-) map.mapValuesList.explode;
There are 2 results
"there"
"that"
:-) "hello".explode;
There are 5 results
'h'
'e'
'l'
'l'
'o'
:-) explode( newMaplet( "key", "value" ) );
There are 2 results
"key"
"value"
:-) explode( <element>"hello", 2, <blah><child/></blah>, 72, "what"</element> );
There are 5 results
"hello"
2
<blah><child/></blah>
72
"what"
It's also worth noting that MillScript can explode any Java object that it can view as a Collection.