scheme
Possible to reset user environment in Scheme REPL?
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[详细]
2023-03-28 13:42 分类:问答How can I use a string to reference a symbol?
The following code wi开发者_开发问答ll generate #f and #t 1: (define dict (hash 1 \'a 2 \'b )) 2: (hash? (string->symbol \"dict\"))[详细]
2023-03-28 12:47 分类:问答How to make it as procedure?
I have the scenario where a function returns an lambda form, and I want to apply the lambda form but failed. Example:[详细]
2023-03-28 09:26 分类:问答Script-Fu giving me "Illegal Function"
this is my first script-fu for gimp and it gives me \"illegal function\" when i try to execute it there.[详细]
2023-03-28 02:10 分类:问答How do I pass a list as a list of arguments in racket?
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:[详细]
2023-03-27 10:15 分类:问答How to write a macro that maintains local state?
This seems to work, it\'s a macro that expands to successive integers depending on how many times it has been expanded.[详细]
2023-03-26 16:22 分类:问答Loading a file that defines values overwrites top-level bindings
If I have a file test.scm: (define开发者_C百科 foo 5) and then using the REPL: (define foo 2) foo ==> 2[详细]
2023-03-26 12:47 分类:问答Run SICP Scheme files like fast-failing tests
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[详细]
2023-03-26 09:33 分类:问答Is there a lint for Common Lisp or Chicken Scheme?
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:[详细]
2023-03-25 11:45 分类:问答How to implement the Observer Design Pattern in a pure functional way?
Let\'s say I want to implement an event bus using a OO programming language. I could do this (pseudocode):[详细]
2023-03-25 07:23 分类:问答