Skip to content

Instantly share code, notes, and snippets.

@masaru-b-cl
Last active March 3, 2017 01:17
Show Gist options
  • Save masaru-b-cl/ed4bbeedb9f8264898f87f3ba8c63947 to your computer and use it in GitHub Desktop.
Save masaru-b-cl/ed4bbeedb9f8264898f87f3ba8c63947 to your computer and use it in GitHub Desktop.
<Query Kind="Statements" />
File.ReadAllLines(@"path\to\ppap.txt")
.Select(line => line.Length)
.ToList()
.ForEach(Console.WriteLine);
I have a pen.
I have a apple.
oh!!
Apple-pen!
I have a pen.
I have a pineapple.
oh!!
Pineapple-pen!
Apple-pen.
Pineapple-pen.
oh!!
Pen-pineapple-apple-pen.
13
15
4
10
13
19
4
14
10
14
4
24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment