Mailing list for all users of the OCaml language and system.
 help / color / mirror / Atom feed
From: Malcolm Matalka <mmatalka@gmail.com>
To: Roelof Wobben <r.wobben@home.nl>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] reverse a list
Date: Sun, 19 Oct 2014 12:34:10 +0000	[thread overview]
Message-ID: <87iojgp7b1.fsf@gmail.com> (raw)
In-Reply-To: <5443A96B.5010505@home.nl> (Roelof Wobben's message of "Sun, 19 Oct 2014 14:07:07 +0200")

Lists are immutable so you'll be constructing a list as you consume
another list.

Roelof Wobben <r.wobben@home.nl> writes:

> 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

  parent reply	other threads:[~2014-10-19 12:34 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
2014-10-19 12:34 ` Malcolm Matalka [this message]
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=87iojgp7b1.fsf@gmail.com \
    --to=mmatalka@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