Geeky I
Geeky I

Reputation: 751

Change word to path

Yet another question related to Change path or refinement

This time, I want to change the a inside a block to a/b

Using change:

test: [a]
change test 'a/b

Splits the values into two:

>> test
== [a b]

Which isn't what I want, but rather, as a single path [a/b]

Upvotes: 2

Views: 61

Answers (2)

DocKimbel
DocKimbel

Reputation: 3199

change/only works, though there is a simpler way in that case:

>> test: [a]
== [a]

>> test/1: 'a/b
== a/b

>> test
== [a/b]

Upvotes: 1

Geeky I
Geeky I

Reputation: 751

The solution is to use change/only:

test: [a]
change/only test 'a/b

Gives:

>> test
== [a/b]

Upvotes: 2

Related Questions