Geeks With Blogs
Works on my machine December 2013 Entries
NSlice v. 1.1
New version of NSlice has been released. What’s new? SliceDelete extension method for indexed and string types. SliceDelete returns exactly opposite result than Slice. The result set is ordered in the same way as the original one. Look at the following example that returns first 2 and last 2 elements: var collection = Enumerable.Range(0, 10).ToList(); collection.SliceDelete(2, -2); //or collection.SliceDelete(-3, 1, -1); Result: { 0, 1, 8, 9 } You can read more about NSlice in one of the previous ......

Posted On Monday, December 23, 2013 9:36 PM

Slicing for .NET
One year ago I had a little crush on Python. Although I consider myself as a hardcore C# coder I think it is a good thing to try other languages. Even if we do not plan to change our major, it is nice to grasp other techniques and practice new ways of thinking, which can be later incorporated into our favorite language. First odd thing I read about Python was that a developer can use negative array indices. My reaction was: Why would I even want to get an IndexOutOfRangeException? That is just silly. ......

Posted On Sunday, December 1, 2013 8:01 PM

Copyright © Jakub Niemyjski | Powered by: GeeksWithBlogs.net