thank you very much .........
it seems good
Search found 12 matches
- Sun Jan 20, 2013 1:02 pm
- Forum: Homework
- Topic: Write A menu for dictionary
- Replies: 4
- Views: 13936
- Mon Dec 31, 2012 5:19 pm
- Forum: Homework
- Topic: transform functions to macro
- Replies: 1
- Views: 8349
transform functions to macro
Hello everybody, actually I post many posts but really I can not solve this problem , I want somebody to help me please I have these functions to sort a list an I want to transform them to macros or have some macros to do the same thing . (defun isMember (L E) "Test if element E is a member of ...
Re: Macros
thanks for replying as I understand ( maybe I understood wrong) that we can replace the function to macro by simple changes in code , is it right????? for example if I have this function which use to insert in Binary search tree : (defun BST-insert (B E) (if (BST-empty-p B) (make-bin-tree-leaf E) (B...
Re: Macros
thanks for your reply , actually my question about common lisp macros
Macros
Hello everybody , can someone help me in macros . are there any useful books or sites which contains good examples of macros . Actually , I have some functions about sorted list and binary trees, I have to write the same functions by using macros . I don`t know how , and my functions are not short (...
- Sat Dec 15, 2012 11:49 am
- Forum: Homework
- Topic: remove node
- Replies: 0
- Views: 9520
remove node
hello every body , Actually , I found functions which use to remove node from binary tree these are the functions : (defun BST-remove (B E) "Remove E from BST B." (if (BST-empty-p B) B (if (bin-tree-leaf-p B) (BST-leaf-remove B E) (BST-node-remove B E)))) (defun BST-leaf-remove (L E) "...
- Tue Dec 11, 2012 7:46 am
- Forum: Homework
- Topic: quick sort
- Replies: 2
- Views: 11405
quick sort
hello every body , I tried to sort a list by using the quick sort algorithm I put this code but I can not get the result (defun qsort (L) (if (null L) nil (append (qsort (list< (first L) (rest L)) ) (cons (first L) nil) (qsort (list>= (first L) (rest L)) ) ) ) ) would some one help me please with th...
- Sun Dec 02, 2012 3:54 am
- Forum: Common Lisp
- Topic: Help me on Tokinzer
- Replies: 2
- Views: 6669
Help me on Tokinzer
Hello every body , I am very beginner in lisp , I need your help I am trying to do some thing like dictionary . I want an example of how I can take sentence like this "this is an example" then take each word "this" "is" "an" "example" thank you very ...
- Sat Dec 01, 2012 9:33 am
- Forum: Homework
- Topic: list as an argument
- Replies: 2
- Views: 9244
Re: list as an argument
thank you very much
Actually , I have found very nice and helpful persons here thank you a lot
Actually , I have found very nice and helpful persons here thank you a lot
- Sat Dec 01, 2012 7:20 am
- Forum: Homework
- Topic: list as an argument
- Replies: 2
- Views: 9244
list as an argument
hello everybody I know this is simple question but please help me because I am very beginner . my question is how to use a list as an argument in my functions . for example when I found this function to insert an element in sorted list : (defun sorted-list-insert (L E) "Insert element E into a ...