scheme
implementing lisp in Python
First: yes, i have taken a very long look at Norvig\'s lispy. Second: I have reused part of his code.[详细]
2023-03-16 06:48 分类:问答How can I make a string with expandable keywords in Scheme?
I\'m writing a GIMP script to export layers to files. I want to provide a user-specifiable field where they can provide the format for the filenames to be开发者_StackOverflow exported, with tilde-char[详细]
2023-03-15 23:39 分类:问答curry in scheme
I have this curry function: (define curry (lambda (f) (lambda (a) (lambda (b) (f a b))))) I think it\'s like (define curry (f 开发者_如何学Goa b)).[详细]
2023-03-15 08:09 分类:问答how to check if a number is power of two in Scheme by tail recursion?
(define (ispowerof2? n)开发者_JAVA百科 (cond ((< n 1) #f) ((= n 1) #t) ((> (remainder n 2) 0) #f)[详细]
2023-03-15 07:55 分类:问答scheme stream problem partSums
this week I got new homework to do, I should write a function partSums, which could add the elements in the original stream to build new stream like:[详细]
2023-03-15 06:49 分类:问答I/O in Haskell is Functional?
I\'m just starting to take a look at Haskell (my previous FP experience is in Scheme), and I came across this code:[详细]
2023-03-14 08:20 分类:问答Origin of the term "Predicate" to refer to a boolean function?
In Scheme, the term \"predicate\" is used as follows: A predicate is a procedure that always returns a boolean v开发者_如何学Goalue (#t or #f).[详细]
2023-03-14 01:14 分类:问答mutable data in scheme to return pairs where right element is the largest suffix matching a condition
I have this definition \"sort left list\" which is a list of pairs sorted according to the left element of each pair the left element must be a non-negative integer and the right component may be a va[详细]
2023-03-13 14:40 分类:问答An ANTLR grammar for Scheme's quasiquotations
Considering following grammar in EBNF: h开发者_StackOverflowttp://pauillac.inria.fr/cdrom_a_graver/www/bigloo/manual/r5rs-8.html[详细]
2023-03-13 03:27 分类:问答How can I print definition of a symbol without evaluation in Scheme?
If I want to print function de开发者_StackOverflowfinition for a symbol, what should I do?If I understand correctly, you want a function print-function such that after[详细]
2023-03-12 18:01 分类:问答