Personal tools

Alternativa/Decizia/Conditionala

From HaskellWiki

Revision as of 17:28, 5 May 2009 by Ha$kell (Talk | contribs)

Jump to: navigation, search

Alternativa/Decizia/Conditionala:

Intentionam sa implementam 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.