R3 More Blocks

R3 Text Strings

跳转

first / second

myblock/3 相当于 pick myblock 3

next / back

head / tail

at myblock 3 指针跳转到第3个元素前面

skip myblock 3 指针往前跳过3个元素,指到第4个元素前面,->

如果skip myblock -3 就是往后跳过3个元素,<-

修改

insert mystring “add to head”

append mystring “add to tail”

change 修改myblock为指定内容,与perl中的substr有相通之处

>> myblock: [the quick brown fox]
== [the quick brown fox]
>> myblock: next myblock
== [quick brown fox]
>> change/part myblock [black] 2
== [fox]
>> head myblock
== [the black fox]


Published

02 July 2015

Categories

Tags


Share On