caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
* a question bout exetract a sub-element of element in triple
@ 2009-02-22 21:56 Su Zhang
  2009-02-22 22:04 ` [Caml-list] " Christophe Raffalli
  2009-02-23  9:39 ` Florent Ouchet
  0 siblings, 2 replies; 3+ messages in thread
From: Su Zhang @ 2009-02-22 21:56 UTC (permalink / raw)
  To: caml-list

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

I encountered a new problem which is I want to get " 1 " from a triple
"(0,2,[1,2,3])", which means I want to get the first value of the third item
in one triple and itself is a list, but when I use the List.hd
(third(0,2,[1,2,3])), it will give me the entire list which is [1,2,3]
the definition of the third is "let third(x,y,z)=z", so is there a way I can
get out "1" from "(0,2,[1,2,3])"? if possible, would you please give me some
advices?

thank you very much

-- 
Su Zhang

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

^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2009-02-23  9:46 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-02-22 21:56 a question bout exetract a sub-element of element in triple Su Zhang
2009-02-22 22:04 ` [Caml-list] " Christophe Raffalli
2009-02-23  9:39 ` Florent Ouchet

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).