Personal tools

Alternativa/Decizia/Conditionala

From HaskellWiki

Revision as of 05:46, 11 February 2011 by Ha$kell (Talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search


Alternativa/Decizia/Conditionala:

Intentionam sa implementam in Rodin ambele feluri de alternative/ decizii.

1.Decizia cu doua ramuri.
daca <expr> atunci <expr> altfel <expr>

2.Decizia cu o ramura vida si una existenta.
daca <expr> atunci <expr>

Sunt similare cu if..then ... else respectiv cu if...then din Pascal.