Search found 19 matches
- Sat Jan 14, 2006 10:16 pm
- Forum: Anything else we might add?
- Topic: Whom is the creator of NewLisp? Is he/she here?
- Replies: 1
- Views: 2870
Whom is the creator of NewLisp? Is he/she here?
Hey all, I'm wondering who created NewLisp, was it a team of people or someone in particular I could converse with about the internals of a Lisp interpreter, assuming thats not too much of a hassle :). If anyone knows of a way I could get in touch with said creator could you let me know please. Than...
- Sat Jan 14, 2006 10:13 pm
- Forum: Anything else we might add?
- Topic: Scheme: reduce & filter (please rate).
- Replies: 9
- Views: 13691
Thanks eddie I looked in the wrong folder, I was looking in mzlib. I wouldn't know where this would be located on windows either not being a windows user ;). At a guess I'd say in the same dir structure under whatever location you installed it? The second argument must be the subdir to load the file...
- Thu Jan 12, 2006 9:38 pm
- Forum: Anything else we might add?
- Topic: Scheme: reduce & filter (please rate).
- Replies: 9
- Views: 13691
Thanks for all your posts guys they helped a lot, just having similar Lisp code to read lets me find new techniques to use :). Eddie: Scheme, including Dr. Scheme doesn't have those functions in list.ss, filter is available although it uses some tricks because of weaknesses in the implementation (ac...
- Wed Jan 11, 2006 7:22 pm
- Forum: Anything else we might add?
- Topic: Scheme: reduce & filter (please rate).
- Replies: 9
- Views: 13691
Scheme: reduce & filter (please rate).
I don't know if anyone here uses Scheme but Scheme doesn't include a reduce or filter function, so I set about writing some for fun and in any case it's a good way to learn :). (define filter (lambda (fn values) "This function is a tail recursive implementation of the filter function found in other ...
- Sun Jan 01, 2006 7:32 am
- Forum: Anything else we might add?
- Topic: Some help: comparing lists
- Replies: 0
- Views: 2471
Some help: comparing lists
Hey all, If you've seen my previous thread you'll know that I'm working on a sort program just for fun, I'm new to lisp and I thought it'd be a nice way to get to know it [by setting little tasks]. As part of this I need to be able to compare Lists of items and decide which comes first. This is prov...
- Sun Jan 01, 2006 5:11 am
- Forum: Anything else we might add?
- Topic: String to List
- Replies: 10
- Views: 10568
My common lisp versions of explode & implode:
All of these create character arrays :).
Mark.
Code: Select all
(defun explode (string)
(map 'list #'character string))
(defun explode2 (string)
(coerce string 'list))
(defun implode (object)
(coerce object 'string))
Mark.
- Sun Jan 01, 2006 2:30 am
- Forum: Anything else we might add?
- Topic: String to List
- Replies: 10
- Views: 10568
Sorry, I thought that this section was about any Lisp :). I'll refrain from asking such questions in the future. CL has no (explode) so I've gone ahead and written that, this should allow me to sort strings in the same way I sort nested lists – assuming that I can figure out how to sort nested lists...
- Sat Dec 31, 2005 4:42 am
- Forum: Anything else we might add?
- Topic: String to List
- Replies: 10
- Views: 10568
String to List
Hi guys, I'm using Common Lisp and I'm looking for a way to turn a string into a list of characters. I'm sure there must be a function to do this but I just can't find it :(. I'm currently working on a sorting function however I'm having a few problems sorting strings in the same function, my hope i...
- Fri Dec 16, 2005 5:24 pm
- Forum: Anything else we might add?
- Topic: Recusion
- Replies: 2
- Views: 3528
Recusion
I'm having some real problems wrapping my head around recursion, kinda embarrassing but hey. I was hoping someone would have some good advice here :).
Mark.
Mark.
- Sat Dec 10, 2005 1:51 pm
- Forum: Anything else we might add?
- Topic: Atoms Symbols etc
- Replies: 2
- Views: 3289
- Sat Dec 10, 2005 1:44 am
- Forum: Anything else we might add?
- Topic: Atoms Symbols etc
- Replies: 2
- Views: 3289
Atoms Symbols etc
I was wondering if somone could tell me what an atom and what an Symbol is, they seem to be used intemitently and I just can't figure it out. I assumed that a Sybol was like a variable but an Atom I have no idea, is a Cons an Atom?
Thanks a lot guys :),
Mark.
Thanks a lot guys :),
Mark.
- Thu Dec 08, 2005 5:58 pm
- Forum: Anything else we might add?
- Topic: LISP people seem to love arguing...
- Replies: 3
- Views: 4472
Wow ok, crazy guys. I spent two years with Python and Lisp is simply better. I dont know it as well yet but I have to say it seems a little odd to me. Still, they have a valid point about there not being as much documentation or example code. Thats not the point... but then, would also choose ASM ov...
- Wed Dec 07, 2005 12:43 am
- Forum: Anything else we might add?
- Topic: Return multiple values from a function.
- Replies: 16
- Views: 18788
Lol yes :) tried that code right at the beginning however Scheme is a little bitch in this sense and you have to make sure that what your trying to append is also a list it throws. The one I'm using right now simply does a (cons) to collect all of the results in positive-binary; i imagine negative-b...
- Tue Dec 06, 2005 11:49 pm
- Forum: Anything else we might add?
- Topic: Return multiple values from a function.
- Replies: 16
- Views: 18788
- Tue Dec 06, 2005 11:44 pm
- Forum: Anything else we might add?
- Topic: Return multiple values from a function.
- Replies: 16
- Views: 18788
Thanks so much, thats just what I needed. However I was wondering if this would not better be implemented as a Macro, I'm not sure how NewLisps support for Macros is but Schemes really suck, it seems like very paper that talks about them and how to utilize them just doesn't work :(. Just curious, Th...
- Tue Dec 06, 2005 10:01 pm
- Forum: Anything else we might add?
- Topic: Return multiple values from a function.
- Replies: 16
- Views: 18788
Thanks a lot Peter, I can see how that works :). I've decided to go with the (reverse) method though, I think it'd be more effiencent in the long run :). If i do it like this way i'd be calling another functions repretedly, alternatively calling reverse once should do it :). Ideally i could just put...
- Tue Dec 06, 2005 9:01 pm
- Forum: Anything else we might add?
- Topic: Return multiple values from a function.
- Replies: 16
- Views: 18788
- Tue Dec 06, 2005 8:53 pm
- Forum: Anything else we might add?
- Topic: Return multiple values from a function.
- Replies: 16
- Views: 18788
I'm not using NewLisp since Im required to do this in Scheme however this said general Lisp so i didnt think it would be a problem :). Very greatful for the fast reply, that really did suprise me. When i reverse the order of them i get a list but its in reverse order. Maybe somone could produce an e...
- Tue Dec 06, 2005 8:29 pm
- Forum: Anything else we might add?
- Topic: Return multiple values from a function.
- Replies: 16
- Views: 18788
Return multiple values from a function.
Hi guys, I'm kinda new to Lisp in general so please forgive my ignorance here. I'm having a few problems with one function I'm writing, I can get it working by using append, and in theory i know what append does but i cant replicate this using (cons). Somewhat annoying since it means i dont understa...