Wednesday, 16 June 2010

Phyton's range method in C# (or .net)

I don't frequently write phyton, nor am an expert on it. But I had a crush on Phyton's 'range' function and was looking for a subtitute on C#, especially after all these new functional programming elements.

Apparently, there was one identical implementation: Enumerable.Range! It's come with C# 3.0.

See: http://stackoverflow.com/questions/1271378/is-there-an-equivalent-of-pythons-range12-in-c

23 comments:

欣幸 said...

I guess I will need a lot.................................................................

林利 said...

nice to know you, and glad to find such a good artical!......................................................................

木堯木堯 said...

良言一句三冬暖,惡語傷人六月寒。....................................................................

佳燕 said...

閒來無聊逛逛blog~~跟您打聲招呼~~.................................................................

育財育財育財 said...

幸福不是一切,人還有責任。............................................................

芸茂芸茂 said...

閱讀您的BLOG文章,真是件快樂的事!..................................................................

新順 said...

人生的苦惱,不在擁有太少,而在奢望太多。..................................................

吳婷婷 said...

沒有經過反省的人生,是不值得活的人生..................................................

江美娟江美娟 said...

嗨~~留個言跟您問好!!謝謝您的分享............................................................

雅莊王edgd春2蕙婷余惠其 said...

永遠不要躊躇伸出你的手。也永遠不要躊躇接受別人伸出的手。.................................................................

吳庭 said...

獲益不少,謝謝分享!............................................................

陳佑發 said...

與人相處不妨多用眼睛說話,多用嘴巴思考. . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . .

徐禎緯 said...

很喜歡你的blog哦...加油唷 ............................................................

施以王雅玲音 said...

留言支持好作品~加油!期待進步和更新............................................................

雅王任 said...

Knowledge is power................................................

建邱勳 said...

Seeing is believing.百聞不如一見............................................................

姜堯林智超玟 said...

教育無他,愛與榜樣而已............................................................

惠桂刁惠桂刁惠桂刁 said...

先將一個人的生活過好,才有能力過好兩個人的生活................................................

麗王王珠 said...

到處逛逛~~來繞繞留個言囉~~~~............................................................

蕾蕾 said...

看到大家都留言-我也忍不住說聲---加油..................................................

佳張張張張燕張張張張張 said...

路過留言支持~~~............................................................

瑰潼 said...

生存乃是不斷地在內心與靈魂交戰;寫作是坐著審判自己。..................................................

建枫 said...

看到好文章心情就很好 ^^............................................................