Search code examples
rebolred-lang

Red or Rebol: how to convert "test/a" to [test/a]


I tried to do this:

 b: []
 append b  to-word "test/a"

but it generates error

* Syntax Error: invalid character in: "test/a" * Where: to *** Stack: run to-word


Solution

  • ;for 30 characters

    to block! "test/a"