Featured post

c# - Usage of Server Side Controls in MVC Frame work -

i using asp.net 4.0 , mvc 2.0 web application. project requiremrnt have use server side control in application not possibl in noraml case. ideally want use adrotator control , datalist control. i saw few samples , references in codepleax mvc controllib howwver found less useful. can tell how utilize theese controls in asp.net application along mvc. note: please provide functionalities related adrotator , datalist controls not equivalent functionalities thanks in advace. mvc pages not use normal .net solution makes use of normal .net components impossible. a normal .net page use event driven solution call different methods service side mvc use actions , view completly different way handle things. also, mvc not use viewstate normal .net controlls require. found article discussing mixing of normal .net , mvc.

haskell - Are infinite lists useful for any real world applications? -


i've been using haskell quite while now, , i've read of real world haskell , learn haskell. want know whether there point language using lazy evaluation, in particular "advantage" of having infinite lists, there task infinite lists make easy, or task possible infinite lists?

here's utterly trivial day-to-day useful example of infinite lists come in handy: when have list of items want use initialize key-value-style data structure, starting consecutive keys. so, have list of strings , want put them intmap counting 0. without lazy infinite lists, you'd walk down input list, keeping running "next index" counter , building intmap go.

with infinite lazy lists, list takes role of running counter; use zip [0..] list of items assign indices, intmap.fromlist construct final result.

sure, it's same thing in both cases. having lazy infinite lists lets express concept more directly without having worry details length of input list or keeping track of counter.


Comments

Popular posts from this blog

c# - Usage of Server Side Controls in MVC Frame work -

cocoa - Nesting arrays into NSDictionary object (Objective-C) -

ios - Very simple iPhone App crashes on UILabel settext -