|
I had a pretty simple requirement in my Scheme program to execute more than one statement, in the true condition of a 'if'. . So I write my code, something like this:
(if (= 1 1) ((expression1) (expression2)) ; these 2 expressions are to be executed when...
Started by Amit on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
COND looks like this in Scheme:
(cond [(= 1 1) (expression1) (expression2)] [else (expression3)])
In MIT-Scheme, which is not very different, you.
Edit: it is called BEGIN ).
It is called in PLT Scheme.
|
|
Very new to VIM so any explanation on how to configure would be very appreciated.
Started by stormist on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Colour scheme was originally based on the highlighting from Visual Studio (version 6 I think background=light
before configuring the colour scheme as otherwise it will default to a dark background..
|
|
I am developing a small program in Scheme but I got stuck. Is there anything similar to Java's indexOf() that I could use in Scheme?
Started by Charles Brow Jr. on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
If it's PLT Scheme, you're probably looking for something like "regexp-match-positions) then you might try the functions here....
To be i if you want 0 based indexing
It's not clear from your question what Scheme implementation you're using.
|
Ask your Facebook Friends
|
Would anyone have any advise about this offer, my Wife has been in this scheme for at least 20 years though left the company she took the pension out with some 18 years ago and has not made any contributions since. Her fund in the scheme is worth nearly...
Started by stuckupaladder on
, 12 posts
by 4 people.
Answer Snippets (Read the full thread at moneysavingexpert):
More than likely to the scheme for a short while and to be honest forgot that she had it and has no idea where this offer, my Wife has been in this scheme....
From the scheme and so I feel the best decision is to remain in the scheme.
|
|
There is Gambit scheme, MIT scheme, PLT scheme, chicken scheme, bigloo, larceny, ...; then there are all the lisps.
Yet, there's not (to my knowledge) a single popular scheme/lisp on LLVM, even though LLVM provides lots of nice things like:
easier to ...
Started by anon on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Interacting the Garbage Collector is what makes FFI calls difficult in languages such as Scheme.
|
|
I'm trying to translate some Common Lisp code into Scheme code. The Common Lisp code has a deftype . Are deftype s in Scheme the same as deftype s in Common Lisp? How do you translate a deftype in Common Lisp into equivalent code in Scheme?
Started by Paul Reiners on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
Bare Scheme doesn't....
You will have to translate type definitions by hand, or write a deftype macro in terms of whatever Scheme record library is available in your system.
Common Lisp deftype doesn't have an exact Scheme equivalent.
|
|
Hi All,
Can anyone help me out understanding the various parameter passing modes in Scheme? I know Scheme implements parameter passing by value. But how about other modes?
Is there any good documentation for parameter passing in Scheme?
Answer Snippets (Read the full thread at stackoverflow):
Instead, some Scheme implementations like PLT Scheme provide a "box value":....
There are other alternatives that can be implemented it is to use macros, but you really shouldn't go there .
Scheme has only call-by-value function calls.
|
|
How do you run Scheme programs from the terminal in linux(ubuntu)? Also how to accept arguments from the command-line in a Scheme program?
Edit: Im using the DrScheme implementation.
Started by Pranav on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
How do you run Scheme....
From the command-line in a Scheme program?
The R6RS library defines a function called command-line which implementations of Scheme implement R6RS though; your implementation might have some other function for this.
|
|
Is there an equivalent in Scheme of Common Lisp's defsetf ?
Started by Paul Reiners on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But in Scheme, they have to define) Scheme, but SRFI 17 , which is supported by some Scheme implementations, allows you to define setters.
Use what appears to be the result of a function as an l-value .
|
|
For a school project (a free choice project), I was planning on working my way through SICP(Structure and Interpretation of Computer Programs) and learning Scheme. After that I want to create something interesting with it (also part of this project). ...
Started by Peak on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you plan to start with....
Once you have learned Scheme and worked through SICP, your programming ability in functional C# is a problem when you already know Java?
The differences between Common Lisp and Scheme are over with no problems.
|