First: yes, i have taken a very long look at Norvig\'s lispy. Second: I have reused part of his code.
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
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)).
(define (ispowerof2? n)开发者_JAVA百科 (cond ((< n 1) #f) ((= n 1) #t) ((> (remainder n 2) 0) #f)
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:
I\'m just starting to take a look at Haskell (my previous FP experience is in Scheme), and I came across this code:
In Scheme, the term \"predicate\" is used as follows: A predicate is a procedure that always returns a boolean v开发者_如何学Goalue (#t or #f).
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
Considering following grammar in EBNF: h开发者_StackOverflowttp://pauillac.inria.fr/cdrom_a_graver/www/bigloo/manual/r5rs-8.html
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