foreach vs somelist.foreach(){}


there apparently ways iterate over collection. extraordinary there any differences, since you'd proceed over other.



first type:



list<string> somelist = <some proceed init>
foreach(string s somelist) {
<process string>
}


other way:



list<string> somelist = <some proceed init>
somelist.foreach(delegate(string s) {
<process string>
});


i suspect off tip head, instead opposite nominee i above, you'd have reusable nominee specify...



Comments

Popular posts from this blog

list macos calm editors formula editors

how hibernate @any-related annotations?

why does floated <input> control floated component slip over too distant right ie7, nonetheless firefox?