Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 additions and 0 deletions
18
Task/Copy-a-string/NewLISP/copy-a-string.l
Normal file
18
Task/Copy-a-string/NewLISP/copy-a-string.l
Normal file
|
|
@ -0,0 +1,18 @@
|
|||
(define (assert f msg) (if (not f) (println msg)))
|
||||
|
||||
(setq s "Greetings!" c (copy s))
|
||||
(reverse c) ; Modifies c in place.
|
||||
|
||||
(assert (= s c) "Strings not equal.")
|
||||
|
||||
; another way
|
||||
; Nehal-Singhal 2018-05-25
|
||||
|
||||
> (setq a "abcd")
|
||||
"abcd"
|
||||
> (setq b a)
|
||||
"abcd"
|
||||
> b
|
||||
"abcd"
|
||||
> (= a b)
|
||||
true
|
||||
Loading…
Add table
Add a link
Reference in a new issue