Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Gabriel Scherer <gabriel.scherer@gmail.com>
To: Roelof Wobben <r.wobben@home.nl>
Cc: caml users <caml-list@inria.fr>
Subject: Re: [Caml-list] reverse a list
Date: Sun, 19 Oct 2014 14:30:56 +0200	[thread overview]
Message-ID: <CAPFanBF1VNR2aucWskjXAYb1or7Xiyhm90UcUc2MeTDVNze6jg@mail.gmail.com> (raw)
In-Reply-To: <5443A96B.5010505@home.nl>

[-- Attachment #1: Type: text/plain, Size: 986 bytes --]

Yes.

As an intermediate step, you should consider implementing the function
  reverse_append : 'a list -> 'a list -> 'a list
such that (reverse_append li1 li2) adds li1 *reversed* on top of li2. For
example, reverse_append [1;2] [3;4] is [2;1;3;4].

Is there a particular reason why you're not using the ocaml_beginners list
anymore?  It's a good list for this kind of questions and, if you perceived
a problem with it, it would be interesting to have some feedback about it.

On Sun, Oct 19, 2014 at 2:07 PM, Roelof Wobben <r.wobben@home.nl> wrote:

> Helllo,
>
> Im a beginner which tries to do the 99 ocaml problems.
>
> Now I try to reverse a list.
> Does I need to use two list . one for the old one and one for the reversed
> list.
>
> Roelof
>
>
> --
> Caml-list mailing list.  Subscription management and archives:
> https://sympa.inria.fr/sympa/arc/caml-list
> Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
> Bug reports: http://caml.inria.fr/bin/caml-bugs
>

[-- Attachment #2: Type: text/html, Size: 1715 bytes --]

  reply	other threads:[~2014-10-19 12:31 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-10-19 12:07 Roelof Wobben
2014-10-19 12:30 ` Gabriel Scherer [this message]
2014-10-19 12:34 ` Malcolm Matalka
2014-10-19 13:59   ` Philippe Wang
2014-10-19 15:13     ` Roelof Wobben
2014-10-19 15:37       ` Roelof Wobben
2014-10-19 12:50 ` SF Markus Elfring

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=CAPFanBF1VNR2aucWskjXAYb1or7Xiyhm90UcUc2MeTDVNze6jg@mail.gmail.com \
    --to=gabriel.scherer@gmail.com \
    --cc=caml-list@inria.fr \
    --cc=r.wobben@home.nl \
    /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