Scheme newbie question- Is there a way for me to reset my current REPL environment (i.e. the default user environment) without quitting and restarting my REPL? Basically I\'d like a way to wipe out m
The following code wi开发者_开发问答ll generate #f and #t 1: (define dict (hash 1 \'a 2 \'b )) 2: (hash? (string->symbol \"dict\"))
I have the scenario where a function returns an lambda form, and I want to apply the lambda form but failed. Example:
this is my first script-fu for gimp and it gives me \"illegal function\" when i try to execute it there.
I have a statement like this: ((lambda (a b c) (+ a b c)) 1 2 3) ; Gives 6 And I would like to be able to also pass it a list as so:
This seems to work, it\'s a macro that expands to successive integers depending on how many times it has been expanded.
If I have a file test.scm: (define开发者_C百科 foo 5) and then using the REPL: (define foo 2) foo ==> 2
After a few years of programming it seems time to finally attack SICP. However, instead of editing and running everything in Emacs, I\'d rather use a different editor and a simple makefile to run all
Is there a lint for Common Lisp or Chicken Scheme? Possibly something akin to C\'s splint, Haskell\'s HLint开发者_如何学Python, Perl\'s B::Lint, etc.?There\'s Lisp Critic:
Let\'s say I want to implement an event bus using a OO programming language. I could do this (pseudocode):