Personal tools

Atribuirea are valoare

From HaskellWiki

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

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

Atribuirea are valoare: valoarea atribuita e si valoarea ei

{ fie y =2;
  fie x=100;
  cat timp (x>10)
    fie x=x-(fie y = 1);
  scrie x;
  scrie y;
}


Atribuirea fie y=1 are chiar valoarea 1. Deci x este actualizat scazandu-i o unitate.