racket
random function in scheme
I am trying to get a random string from a list of strings in scheme. Example List 开发者_运维技巧( \"this\" \"that\" \"today\" \"yesterday\")[详细]
2023-01-25 13:11 分类:问答Removing/comparing string value with a list - scheme
I am trying to remove members which exists in a string from a list consisting of those members. Example:[详细]
2023-01-24 20:25 分类:问答Adding arguments to list causes error
I tried an example where we need to pass a list as arguments and if condition succeeds I want to add result to a new list.[详细]
2023-01-24 16:21 分类:问答Computing the longest common subsequence of two lists in Scheme in polynomial time
So I need to calculate the longest common subsequence of two lists, but it needs to be in polynomial time. The only problem i\'m having is that I\'m n开发者_如何学JAVAot allowed to use \"!\" at all. T[详细]
2023-01-24 16:05 分类:问答Longest common sublist
While 开发者_JAVA技巧trying to write a solution to the longest common sublist problem in Scheme, I\'m having trouble figuring out what is wrong with what I have so far.I think it\'s the right idea and[详细]
2023-01-24 02:33 分类:问答How can I create an association list from 2 lists?
In DrScheme, how can I create an association list from 2 lists? For example, I have, y = ( 1 2 3 ) x = 开发者_JS百科( a b c )[详细]
2023-01-22 22:01 分类:问答Problems with sorting
I\'m learning Scheme in a class and my professor doesn\'t answer questions after 8:00, so I\'m hoping you all can help me out.Basically I have a family tree type thing and I\'m trying to get all the a[详细]
2023-01-22 17:14 分类:问答Identifiers and Binding in Scheme - how to interpret the function?
I am reading DrRacket document http://docs.racket-lang.org/guide/binding.html There is a function (define f[详细]
2023-01-22 00:20 分类:问答Searching through lists with Scheme (DrRacket)
So here\'s my code: (define *graph* (read(open-input-file \"开发者_开发技巧starbucks4.sxml\")))[详细]
2023-01-21 21:27 分类:问答Using the member function in Scheme
This is my code: (define p (read(open-input-file \"starbucks4.sxml\"))) (define get-artifacts (lambda (l)[详细]
2023-01-21 07:04 分类:问答