Sorry, I have test my code.
Thanks a lots.
Search found 88 matches
- Thu Jun 12, 2014 3:11 am
- Forum: Anything else we might add?
- Topic: replace slice of list to a element
- Replies: 2
- Views: 3686
- Wed Jun 11, 2014 2:33 pm
- Forum: Anything else we might add?
- Topic: replace slice of list to a element
- Replies: 2
- Views: 3686
replace slice of list to a element
As manual said: Slices or rest parts of lists or arrays as used in implicit resting or slicing cannot be substituted at once using setf, but would have to be substituted element by element. . If I want replace a piece of list to a element: (set 'lst '(a b c d e f) (replace-slice (slice lst 2 3) 'g) ...
- Wed Jun 11, 2014 9:30 am
- Forum: Anything else we might add?
- Topic: How to set newLISP-GS auto-refresh the tab content
- Replies: 2
- Views: 3825
Re: How to set newLISP-GS auto-refresh the tab content
I am exciting to get the reply of designer of newLISP.
Thanks Lutz!
Thanks Lutz!
- Mon Jun 09, 2014 2:30 pm
- Forum: Anything else we might add?
- Topic: How to set newLISP-GS auto-refresh the tab content
- Replies: 2
- Views: 3825
How to set newLISP-GS auto-refresh the tab content
I use Vim to write newLISP code, but I like use newLISP-GS to run code, When I edit and save in Vim, Only way to refresh the content in newLISP-GS is to re-open a tab.
If have any setting option to make it auto-refresh?
If have any setting option to make it auto-refresh?
- Sat May 31, 2014 5:56 pm
- Forum: So, what can you actually DO with newLISP?
- Topic: I use newLISP to write a common language parser
- Replies: 0
- Views: 4897
I use newLISP to write a common language parser
I use Perl write a Common Programming language Parser, But it is too complex to maintain and extend. I try this project with Ruby, Lua, till I study Lisp. After study Common Lisp, Clojure and Racket, I found only newLISP is suited for this project. Thanks Latz, newLISP is best suitable language to w...
- Sat May 31, 2014 12:25 am
- Forum: newLISP in the real world
- Topic: List or quoted List
- Replies: 2
- Views: 2709
Re: List or quoted List
I think must have a type of data structure -> 'lazy-list' in newLISP, which would not be evaluted when passed into function as argument. most of list processing function would return a 'lazy-list'.
- Thu May 29, 2014 11:36 pm
- Forum: newLISP in the real world
- Topic: List or quoted List
- Replies: 2
- Views: 2709
List or quoted List
function map accept a quoted list as its seconds arguments: (map inc '(1 2 3 4 5)) but above expression returned a list? or a quoted list? I think its should be a quoted list, because it could used with second map: (map inc (map inc '(1 2 3 4))) I don't know if it is a macro with map, but the expres...
- Sat May 24, 2014 4:10 am
- Forum: Anything else we might add?
- Topic: Bug for UTF-8 version about rotate string
- Replies: 2
- Views: 4133
Bug for UTF-8 version about rotate string
Code: Select all
(rotate (copy "string"))
=> ?
(rotate "string") => "gstrin" ;; it is ok
(copy "string") => "string" ; it is ok too
Platform: Winxp sp3
- Fri May 16, 2014 5:20 am
- Forum: Anything else we might add?
- Topic: int option of regexp
- Replies: 2
- Views: 3387
Re: int option of regexp
Thanks cormullion nice reply.
- Fri May 16, 2014 2:17 am
- Forum: Anything else we might add?
- Topic: The module search path on Winidows XP
- Replies: 2
- Views: 3589
The module search path on Winidows XP
When I use with newlisp-GS:
on WIndows xp, Only valid path is $HOME.
Could I set many directory to load module without prefix directory name?
Code: Select all
(load "module-xxx.lsp")
Could I set many directory to load module without prefix directory name?
- Wed May 14, 2014 7:01 am
- Forum: Anything else we might add?
- Topic: int option of regexp
- Replies: 2
- Views: 3387
int option of regexp
As the manual said:
If I want use all this option together, How to write code?
Code: Select all
i for PCRE_CASELESS
m for PCRE_MULTILINE
s for PCRE_DOTALL
x for PCRE_EXTENDED
If it should like:# Perl style
qr/a b .*? d/xms
Code: Select all
(regex "^a b+ c .*? d$" "abbc\n\r123d" (+ 2 4 8))
- Mon May 05, 2014 1:39 am
- Forum: Anything else we might add?
- Topic: array literal and Tail Call Optimization
- Replies: 3
- Views: 4509
Re: array literal and Tail Call Optimization
Thanks above nice reply.
I understand that Tail Call Optimization and literal of (Array 1 2 3) or (Hash 'a 1 'c 2) could slove by programmer-self use the framework of newLISP(macro or context).
I understand that Tail Call Optimization and literal of (Array 1 2 3) or (Hash 'a 1 'c 2) could slove by programmer-self use the framework of newLISP(macro or context).
- Sun May 04, 2014 1:27 pm
- Forum: Anything else we might add?
- Topic: array literal and Tail Call Optimization
- Replies: 3
- Views: 4509
array literal and Tail Call Optimization
Hello everyone, I found it is same that array literal with list literal, but they are different datatype. (list? (array 3)) => nil (array 3) => (nil nil nil) '(nil nil nil) => (nil nil nil) (list? '(nil nil nil) => true other question, When I run: >[cmd](define (fibonacci n) (if (< n 2) 1 (+ (fibona...