Post Reply 
FOR IN {} suggestion for HP team
12-01-2014, 06:51 PM
Post: #7
RE: FOR IN {} suggestion for HP team
Python for example :

Code:

fruits = ['banana', 'apple',  'mango']
for fruit in fruits:       
   print 'Current fruit :', fruit

Or Mapple :

Code:

chiffres := {1, 2, 3, 4, 5, 6, 7, 8, 9}; 
for a in chiffres do 
for b in chiffres minus {a} do 
for c in chiffres minus {a, b} do 
 .
 .
 .
end do end do end do;

Or Ada, C, D, Delphi, Pascal, PHP,Perl , etc etc etc :
http://en.wikipedia.org/wiki/Foreach_loop

Of course the idea was not to be limited to fixed list...
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
FOR IN {} suggestion for HP team - Gilles - 11-22-2014, 01:59 PM
RE: FOR IN {} suggestion for HP team - Han - 12-01-2014, 04:15 PM
RE: FOR IN {} suggestion for HP team - Han - 12-01-2014, 06:54 PM
RE: FOR IN {} suggestion for HP team - Gilles - 12-01-2014 06:51 PM



User(s) browsing this thread: 1 Guest(s)