From: Alexsandro Soares <a_s_soares@yahoo.com.br>
To: lista OCaml <caml-list@inria.fr>
Subject: Camlp4 beginner
Date: Thu, 21 Jun 2007 06:11:33 -0700 (PDT) [thread overview]
Message-ID: <896359.17729.qm@web51605.mail.re2.yahoo.com> (raw)
Hi all,
I'm trying to understand how the new campl4 works. I'll begin with small examples and I would like to receive one program and instructions about how to compile it.
1 - sequences.
# let x = [+ 1, 2 .. 5 +];;
val x : int list = [1; 2; 3; 4; 5]
# let x = [+ 1, 3 .. 10 +];;
val x : int list = [1; 3; 5; 7; 9]
# let x = [+ 5, 4 .. 1 +];;
val x : int list = [5; 4; 3; 2; 1]
# let x = [+ 1 .. 5 +];;
val x : int list = [1; 2; 3; 4; 5]
Thanks in advance for any answer.
Best regards,
Alex
____________________________________________________________________________________
Novo Yahoo! Cadê? - Experimente uma nova busca.
http://yahoo.com.br/oqueeuganhocomisso
reply other threads:[~2007-06-21 13:11 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=896359.17729.qm@web51605.mail.re2.yahoo.com \
--to=a_s_soares@yahoo.com.br \
--cc=caml-list@inria.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox