Just another update
This commit is contained in:
parent
a25938f123
commit
00a190b0a6
6591 changed files with 94363 additions and 23227 deletions
|
|
@ -0,0 +1,15 @@
|
|||
; using substring:
|
||||
user=> (subs "knight" 1)
|
||||
"night"
|
||||
user=> (subs "socks" 0 4)
|
||||
"sock"
|
||||
user=> (.substring "brooms" 1 5)
|
||||
"room"
|
||||
|
||||
; using rest and drop-last:
|
||||
user=> (apply str (rest "knight"))
|
||||
"night"
|
||||
user=> (apply str (drop-last "socks"))
|
||||
"sock"
|
||||
user=> (apply str (rest (drop-last "brooms")))
|
||||
"room"
|
||||
Loading…
Add table
Add a link
Reference in a new issue