Learning the wolfram Language, in section 32
"The Wolfram Language" // Characters[#]& /. Alternatives @@Characters["aeiou"] -> Nothing
Returns
{T,h,e, ,W,o,l,f,r,a,m, ,L,a,n,g,u,a,g,e}
I expected it to return
{T,h, ,W,l,f,r,m, ,L,n,g,g}
Changing it to
Characters["The Wolfram Language"] /. Alternatives @@Characters["aeiou"] -> Nothing
Returns the expected result, why?
//
) notation. In this case, everything after//
is grouped together. You can see this by repeatedly clickingCharacters
and see how the selection expands. You'd need to write("The Wolfram Language" // Characters[#]&) /. ...
to make this work. $\endgroup$