samedi 9 mai 2015

How does this code work? VISUAL BASIC

The code bellow splits a string into strings of seven characters each into an array. Can someone please explain how it works in detail?

Dim orig = "12344321678900987"
Dim res = Enumerable.Range(0,orig.Length\8).[Select](Function(i) orig.Substring(i*8,8))

Aucun commentaire:

Enregistrer un commentaire