rebol - How do I convert set-words in a block to words -


i want convert block block: [ a: 1 b: 2 ] [a 1 b 2]. there easier way of this?

map-each word block [ either set-word? word [ to-word word ] [ word ] ]

keeping simple:

>> block: [a: 1 b: 2] == [a: 1 b: 2] >> forskip block 2 [block/1: word! block/1] == b >> block == [a 1 b 2] 

Comments

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -