Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 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