Bug for UTF-8 version about rotate string
Posted: Sat May 24, 2014 4:10 am
Code: Select all
(rotate (copy "string"))
=> ?
(rotate "string") => "gstrin" ;; it is ok
(copy "string") => "string" ; it is ok too
Platform: Winxp sp3
Friends and Fans of newLISP
http://www.newlispfanclub.alh.net/forum/
http://www.newlispfanclub.alh.net/forum/viewtopic.php?f=5&t=4528
Code: Select all
(rotate (copy "string"))
=> ?
(rotate "string") => "gstrin" ;; it is ok
(copy "string") => "string" ; it is ok too
Code: Select all
(set 'str "newLISP") → "newLISP"
(rotate (copy str)) → "PnewLIS"
Code: Select all
(set 'str "newLISP")
(rotate (setq str2(copy str)))