Retourner au contenu associé (journal : Ada, langage et ressources)
Posté par Nicolas Boulay (site web personnel) le 25 juin 2013 à 13:44. En réponse au journal Ada, langage et ressources. Évalué à 4.
il gère aussi l'emboitement ?
Genre
type t = Plop of integer | Plip of string
type t2 = Foo of t1 | Foo2 of (t*t)
let foo t2 = match t2 with | Foo (Plop i ) -> .. | Foo (Plip s) ->… | Foo2 (_, tt) -> toto (tt) …
"La première sécurité est la liberté"
AltStyle によって変換されたページ (->オリジナル) / アドレス: モード: デフォルト 音声ブラウザ ルビ付き 配色反転 文字拡大 モバイル
[^] # Re: langage fonctionnel
Posté par Nicolas Boulay (site web personnel) . En réponse au journal Ada, langage et ressources. Évalué à 4.
il gère aussi l'emboitement ?
Genre
type t = Plop of integer | Plip of string
type t2 = Foo of t1 | Foo2 of (t*t)
let foo t2 =
match t2 with
| Foo (Plop i ) -> ..
| Foo (Plip s) ->…
| Foo2 (_, tt) -> toto (tt)
…
"La première sécurité est la liberté"