Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

Recent questions tagged Scheme

0 votes
467 views
1 answer
    I defined a simple lazy list of all integers from zero: (define integers-from (lambda (n) (cons n (lambda () (integers- ... -lst) (sub1 n)))) )) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
482 views
1 answer
    I'm currently trying to dive into Racket/Scheme a bit. I have an instance of the (X)REPL running next ... of the documentation that help opens? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
535 views
1 answer
    I'm trying to create a function to count all the elements in a list, including the elements of its sublists. ... length, null?, and list?. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
526 views
1 answer
    I have following list of connections: (define routelist (list (list'a 'b) (list'a 'c) (list'b 'e ... functional solution be achieved in Racket? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
339 views
1 answer
    I have written following function to find if one and only one of 5 variables is true: (define (oneof v ... need for its improvement remains. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
271 views
1 answer
    consider following rules in the parser: expression : IDENTIFIER | (...) | procedure_call // e.g. (foo 1 2 3 ... a proper way to solve that? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
578 views
1 answer
    How do I check if something is an atom? I'm looking for something like number? or list?. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
462 views
1 answer
    I am trying to write a macro that defines a special class of data structure with associated functions. I know this ... a function in a macro? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
401 views
1 answer
    I'm starting to read the Little Schemer and now instead of PLT Scheme we have Racket. I would like to know ... . Thanks a lot in advance. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
327 views
1 answer
    Exercise 3.20 in SICP: Draw environment diagrams to illustrate the evaluation of the sequence of expressions (define ... Is my solution correct? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
469 views
1 answer
    Ok, this is a fairly basic question: I am following the SICP videos, and I am a bit confused about the ... is the real advantage of let? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
365 views
1 answer
    I'm trying to grasp the semantics of call/cc in Scheme, and the Wikipedia page on continuations shows the yin- ... works the way it works? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
426 views
1 answer
    Example from http://www.cse.unsw.edu.au/~en1000/haskell/hof.html : (foldr / 7 (list 34 56 12 4 ... and then the output of previous calculation. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
374 views
1 answer
    The question i'm trying to answer: The prime factors of 13195 are 5, 7, 13 and 29. What is the largest prime factor ... (+ x 1)) (display z))) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
320 views
1 answer
    How do I convert a number to a list of digits? I am currently doing: ;; (num->list 12345) -> '(1 2 3 4 ... like to know if there's a better way. See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
393 views
1 answer
    Say I have the list '(1 2 3 (4 5 6) 7 8 9). It should return (9 8 7 (6 5 4) 3 2 1) using the ... -reverse (cdr lst)) (list (car lst)))))) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
322 views
1 answer
    I'm trying to learn scheme via SICP. Exercise 1.3 reads as follow: Define a procedure that takes three numbers as arguments ... (big a c)))))) See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
310 views
1 answer
    I am using this piece of code to launch my app from a link. <activity android:name="com.example.myApp.myClass" ... to launch. What should I do? See Question&Answers more detail:os...
asked Oct 24, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
336 views
1 answer
    I am trying to create a macro for while loop in DrRacket. Here is what I wrote: (require mzlib/defmacro) ( ... as an argument to some procedure. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
292 views
1 answer
    After reading The Seasoned Schemer I felt I understood call/cc properly. But, after seeing some WOW tricks with ... does call/cc actually work? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
411 views
1 answer
    In an answer which explains how to convert a number to a list the number->list procedure is defined as ... can better understand it. Thanks. See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
0 votes
841 views
1 answer
    I am just trying to do very simple code with set-car! and set-cdr! in racket, but I got the error: ... defined in racket? Could anyone help? See Question&Answers more detail:os...
asked Oct 17, 2021 in Technique[技术] by 深蓝 (71.8m points)
Ask a question:
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...