I have a dataset created with SemanticImport assigned to "cofo." Paralleling what Christopher Wolfram did in the LiveStream "Playing With Government Data in the Wolfram Language," I did the following (please excuse my naïveté if I'm not using the Code functionality correctly):
RandomSample[cofo, 1000][ ToLowerCase /* TextWords /* Flatten /* DeleteStopwords /* WordCloud, "Work Description"]
It works fine but I don't know why. In particular, how is it that the string of right composed functions applies to the Random Sample? Random sample is the argument. I also assigned
bofo=RandomSample[cofo,100]; bofo[ToLowerCase /* TextWords /* Flatten /* DeleteStopwords /* WordCloud, "Work Description"]
which also worked. How can the argument (bofo) be in front of the functions?
Mathematica's syntax continuously seems to baffle me.