Personal tools

Alternativa/Decizia/Conditionala

From HaskellWiki

(Difference between revisions)
Jump to: navigation, search
 
 
(One intermediate revision by one user not shown)

Latest revision as of 05:46, 11 February 2011


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.