Loops/Foreach: Difference between revisions

Content added Content deleted
Line 1,681: Line 1,681:
</lang>
</lang>


=={{header|Mathematica}}==
=={{header|Mathematica}}/{{header|Wolfram Language}}==
Foreach over list of strings
Foreach over list of strings
<lang mathematica>s = (StringSplit@Import["ExampleData/USConstitution.txt"])[[1;;7]];
<lang mathematica>s = (StringSplit@Import["ExampleData/USConstitution.txt"])[[1;;7]];