From: Ivan Gotovchits <ivg@ieee.org>
To: Erkki Seppala <flux-caml@inside.org>
Cc: caml-list@yquem.inria.fr
Subject: Re: [Caml-list] Removing repeating code
Date: Fri, 18 Jan 2013 10:32:08 +0400 [thread overview]
Message-ID: <87r4ljrogn.fsf@golf.niidar.ru> (raw)
In-Reply-To: <m49pq13t3vi.fsf@coffee.modeemi.fi> (Erkki Seppala's message of "Fri, 18 Jan 2013 08:13:53 +0200")
Erkki Seppala <flux-caml@inside.org> writes:
> let f = function | Strings a | Floats a -> Array.length a
>
Nope,
# let f = function | Strings a | Floats a -> Array.length a;;
Characters 19-39:
let f = function | Strings a | Floats a -> Array.length a;;
^^^^^^^^^^^^^^^^^^^^
Error: This pattern matches values of type string array
but a pattern was expected which matches values of type float array
Strings a cannot be unified with Floats a ...
--
(__)
(oo)
/------\/
/ | ||
* /\---/\
~~ ~~
...."Have you mooed today?"...
next prev parent reply other threads:[~2013-01-18 6:32 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-01-18 4:57 Ivan Gotovchits
2013-01-18 6:13 ` Erkki Seppala
2013-01-18 6:32 ` Ivan Gotovchits [this message]
2013-01-18 7:08 ` Erkki Seppala
2013-01-18 14:14 ` Gabriel Scherer
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=87r4ljrogn.fsf@golf.niidar.ru \
--to=ivg@ieee.org \
--cc=caml-list@yquem.inria.fr \
--cc=flux-caml@inside.org \
/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