From 3d97d1e899715f76d639d119b72c4539db4517fb Mon Sep 17 00:00:00 2001 From: Jeremy Huddleston Date: Tue, 16 Feb 2021 20:03:41 -0600 Subject: [PATCH 1/2] Added nested foreach loop --- LoggingKata/Program.cs | 12 ++++++++---- 1 file changed, 8 insertions(+), 4 deletions(-) diff --git a/LoggingKata/Program.cs b/LoggingKata/Program.cs index e36fbf28..67db0efb 100644 --- a/LoggingKata/Program.cs +++ b/LoggingKata/Program.cs @@ -33,16 +33,20 @@ static void Main(string[] args) double distance = 0; - for (int i = 0; i < locations.Length; i++) + //for (int i = 0; i < locations.Length; i++) + foreach(var i in locations) { - var locA = locations[i]; + //var locA = locations[i]; + var locA = i; var corA = new GeoCoordinate(); corA.Latitude = locA.Location.Latitude; corA.Longitude = locA.Location.Longitude; - for (int j = 0; j < locations.Length; j++) + //for (int j = 0; j < locations.Length; j++) + foreach(var j in locations) { - var locB = locations[j]; + //var locB = locations[j]; + var locB = j; var corB = new GeoCoordinate(locB.Location.Latitude, locB.Location.Longitude); if(corA.GetDistanceTo(corB) > distance) From a17ae0293327fb11b591596df03aa3b41eadce8c Mon Sep 17 00:00:00 2001 From: jshudd <62891431+jshudd@users.noreply.github.com> Date: Fri, 26 Feb 2021 10:03:10 -0600 Subject: [PATCH 2/2] Set theme jekyll-theme-slate --- _config.yml | 1 + 1 file changed, 1 insertion(+) create mode 100644 _config.yml diff --git a/_config.yml b/_config.yml new file mode 100644 index 00000000..c7418817 --- /dev/null +++ b/_config.yml @@ -0,0 +1 @@ +theme: jekyll-theme-slate \ No newline at end of file