repend

The repend word works in the same way as append,  but repend first  evaluates (or reduces—the re comes from reduce) the series to be added:

repend [10 11 12] [8 + 5 "pi"] ;== [10 11 12 13 "pi"]

As always, with /only, the added series stays a series:

repend/only [10 11 12] [8 + 5 "pi"] ;== == [10 11 12 [13 "pi"]]

Get Learn Red - Fundamentals of Red now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.