Mathics icon indicating copy to clipboard operation
Mathics copied to clipboard

StringRiffle handling multiple nesting levels not implemented

Open den-run-ai opened this issue 9 years ago • 2 comments

https://reference.wolfram.com/language/ref/StringRiffle.html

den-run-ai avatar Feb 09 '16 23:02 den-run-ai

We could implement this using Riffle and StringJoin.

For example: (there are many cases this is just the simplest)

In[1]:= StringRiffle[x_List] := StringJoin[Riffle[x, " "]]
In[2]:= StringRiffle[{"a", "b", "c", "d", "e"}]
Out[2]= a b c d e

sn6uv avatar Feb 10 '16 19:02 sn6uv

As of 1.1.0rc1 and 44ee56b34 (by Long Nguyen), StringRiffle is in strings.py. Handling the different kinds of levels though is not.

Note however that the Rubi package doesn't need this form, but only one of the forms handled as of 1.1.0rc1

rocky avatar Apr 06 '21 01:04 rocky