Search found 607 matches

by rickyboy
Wed Apr 20, 2005 9:36 pm
Forum: Anything else we might add?
Topic: curly brace as end of variable symbol?
Replies: 5
Views: 3110

I agree with Hans-Peter: keep it the way it is. In addition to Hans-Peter's reasoning, one should never expect something like > (println{hello}) invalid function : (println{hello}) > (println42) invalid function : (println42) to work (regardless of the existing non-parallelism, i.e. one can print so...
by rickyboy
Sat Apr 16, 2005 5:34 am
Forum: Anything else we might add?
Topic: Combinations and Permutations
Replies: 4
Views: 3906

He, he, he. Of course, you may use the code in "Tips and Tricks"! I'm just sorry I can't contribute code on the order that others have -- I just flat out don't have the time. :-( BTW, there is a subtle bug in the newLISP version of 'make-k-permutations'. Say you have a multiset M given by (setq M '(...
by rickyboy
Fri Apr 15, 2005 5:41 pm
Forum: Anything else we might add?
Topic: Combinations and Permutations
Replies: 4
Views: 3906

Hello Jeremy, This reply is a little dated since I really only just joined this group recently. How about some code for k-permutations of a multi-set? It's in Common Lisp, not newLISP (but you could translate it). ;; ;; Warren-Hanson algorithm for generating permutations of ;; multisets. ;; > (defun...
by rickyboy
Fri Apr 15, 2005 1:10 pm
Forum: Whither newLISP?
Topic: Is newLISP "prejudiced" against recursive function
Replies: 2
Views: 3559

Thanks Lutz!
by rickyboy
Fri Apr 15, 2005 3:55 am
Forum: Whither newLISP?
Topic: Is newLISP "prejudiced" against recursive function
Replies: 2
Views: 3559

Is newLISP "prejudiced" against recursive function

Hello everyone, Consider this function which adjoins one element 'x' to a set 'S', non-destructively. (define (adjoin1 S x) (if (or (= x nil) (= S nil) (member x S)) S (cons x S))) > (define L '(1 2 3)) (1 2 3) > (adjoin1 L 0) (0 1 2 3) Now to adjoin more than one element (at a time), it seems natur...
by rickyboy
Fri Apr 15, 2005 3:07 am
Forum: newLISP newS
Topic: Makefile change: uninstall target
Replies: 2
Views: 2931

Makefile change: uninstall target

Hello Lutz, This would be a small change to 'Makefile' in the distro, but I recommend to change the 'uninstall' section according to this 'diff' output: 204,208c204,208 < -rm /usr/bin/newlisp < -rm /usr/bin/newlisp-tk < -rm -rf /usr/share/newlisp < -rm /usr/share/man/man1/newlisp.1 < -rm /usr/share/...
by rickyboy
Wed Apr 13, 2005 7:17 pm
Forum: newLISP in the real world
Topic: How to deconstruct a list into spreadsheet
Replies: 1
Views: 2312

How to deconstruct a list into spreadsheet

Hello everyone, I have a question regarding the use of expressions returned from newlisp.dll to an Excel spreadsheet (thanks BTW for providing the Excel VBA "glue code" to newlisp.dll). Everything seems to work great, until I need to assign newlisp list components to cells of a spreadsheet. Is that ...