2
$\begingroup$

When trying the below code, is there a more elegant way to output the numbers without the commas or brackets? Grid, as suggested in other threads, is not behaving as expected, nor did trying to force a blank space with Row[list," "] between each item work. The intent is to copy and paste the cleaned output for other uses.

encode:=FormPage[{"message"->"String", "key"->"Integer"},
 Row[Times[ToCharacterCode[#message],#key]
  ,Spacer[4]]&]
CloudDeploy@encode
$\endgroup$
  • $\begingroup$ Suggest you look at TableForm. $\endgroup$ – m_goldberg Sep 23 '17 at 16:32
1
$\begingroup$

One approach is to turn everything into a string

list = Range[5];
StringJoin[ToString /@ Riffle[list, " "]]

1 2 3 4 5

You can copy-paste this output directly.

$\endgroup$
2
$\begingroup$

I use when I do not want nothing between elements of list Grid[list, Frame->None]

$\endgroup$
  • 1
    $\begingroup$ Hmmm.. This is the output in the cloud once updated: Grid[{38628, 34632, 34965, 38295, 10656, 34965, 38295, 10656, 38628, 34632, 33633, 10656, 33633, 36630, 33300}, Frame -> None] $\endgroup$ – BBirdsell Sep 23 '17 at 22:28

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.