|
What's the difference between:
(cons 'a (cons 'b 'c)) ;; (A B . C)
and
(cons 'a '(b.c)) ;; (A B.C)
I need to create the following list ((a.b).c) using cons so i'm trying to understand what that "." represents.
L.E. : I have the following (cons (cons '...
Started by daniels on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
If you enter (FOO.BAR) then Lisp will read it as a list with one symbol as its contents... .
If you enter FOO.BAR, then Lisp will read it as one symbol .
B.c is a symbol with a name of three characters: b, ., and c .
Between two characters is a part of a symbol.
|
|
$dml = "insert into table ..."; mysql_query($dml,$con);
The above insert something into a table.then you can check if it succeeded by either
if('' == mysql_error($con))...
or
if($id = mysql_insert_id($con))...
What's your choice and reason?
BTW,will the...
Answer Snippets (Read the full thread at stackoverflow):
Your code block should work, however the manual recommends to run... .
Mysql_error() will always throw an error if the insert operation fails, so fetching the insert_id is not really necessary as far as I can see, unless you need it for further processing .
|
|
What is the effect of the following code:
$page = <<<CON <p><center>Blah blah blah</center></p> CON;
What does the <<<CON do?
Started by waiwai933 on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
Language.types.string.php#language.types.string.syntax.heredoc
CON does not mean anything it can be named also BLA: note that if you are starting with CON you must end with CON (not EOT,XXX etc)
This is known, and doesn't require....
|
Ask your Facebook Friends
|
Any one knw how to remove the passager air con panel and driver side air con panel ?
i cubic print all the part , but bcc have no idea how to remove both? now i find it wierid , who knw or any url to guide to remove ?
Started by Seifer on
, 15 posts
by 9 people.
Answer Snippets (Read the full thread at renaultcarclub):
|
|
On Tue, 24 Jul 2007 09:31:30 -0500, Hugo Vanwoerkom <hvw59601@care2.com> wrote:
Hi,
I don't really think this is OT, albeit not directly Debian related.
Con Kolivas, the kernel hacker who authored a better scheduler, recently
decided to quit...
Answer Snippets (Read the full thread at omgili):
>....
> > Con Kolivas, the kernel not directly Debian related.
> Con Kolivas, the kernel hacker who authored a better scheduler, recently
> decided; I don't really think this is OT, albeit not directly Debian related.
Related.
|
|
What exactly is the definition of a Common Lisp Cons Cell? How is a Cons Cell different than a standard linked list item? After all, both the cons cell and the linked list item have a value and a pointer to the next cell or item... or is this understanding...
Started by Jonas Gorauskas on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
A cons cell is closer to a binary tree....
General usage of course is to point to a "value" with the left one, and to another Cons cell (or nil) with the "right" one.
Cons cells in general hold two pointers that can point to anything.
|
|
Before I attempt to "re-create the wheel" I was wondering if anyone knows if a master list of CONs already exists?
If there is, perhaps someone would be willing to point me in that direction?
If not, I thought this might be a great place for us to start...
Started by Kelly B on
, 6 posts
by 5 people.
Answer Snippets (Read the full thread at peginc):
Kids like little cuddly sidekicks....
The rabbit is cuddly.
However, I don't know of any sort of master list and would certainly appreciate such a resource. .
The e-zine Savage Insider features a list of cons coming up in the next few months in each issue.
|
|
I realize this is a total n00b question, but I'm curious and I thought I might get a better explanation here than anywhere else. Here's a list (I'm using Dr. Scheme)
> (list 1 2 3) (1 2 3)
Which I think is just sugar for this:
> (cons 1 (cons 2 ...
Started by dsimard on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
Cons2 (cons 3 null) =....
cons 3 null => (3) 3.
Null => () --read as empty list 2.
A list is made up of an item cons a list
So these are lists:
1.
The null list (empty list) is a list 2.
The definition of a list is recursive.
|
|
Hi, in all versions of Windows we are unable to rename a file or a folder name as con unless we use a renaming software. Why a file or a folder can't be renamed as con ?
Started by hari on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at superuser):
Copy con....
C:\>
Just like be used because they are reserved.
^Z 1 file(s) copied.
con err nul And a couple others, I think;copy con foo.txt I'm typing some text here.
con" is the name of a system I/O device, the console.
|
|
What's the pros and cons of using a Model-View-Controller model in building your application?
Started by RCIX on
, 5 posts
by 5 people.
Answer Snippets (Read the full thread at stackoverflow):
I cant think of many
More work, but on the contrary IMHO it's time well spent mvc is good because it's an organized way of separating business logic... .
Pros
No business logic in UI More Unit Testable One size fits all solution (Well Almost..) Cons ..
|