{"id":12033023,"date":"2019-10-15T21:41:21","date_gmt":"2019-10-15T21:41:21","guid":{"rendered":"https:\/\/wordpress.org\/support\/topic\/code-snippet-get-cuts-off-when-use-in-a-for-in-loop\/"},"modified":"2019-10-15T21:41:21","modified_gmt":"2019-10-15T21:41:21","slug":"code-snippet-get-cuts-off-when-use-in-a-for-in-loop","status":"publish","type":"topic","link":"https:\/\/wordpress.org\/support\/topic\/code-snippet-get-cuts-off-when-use-in-a-for-in-loop\/","title":{"rendered":"Code snippet get cuts off when use ..&lt; in a for in loop"},"content":{"rendered":"<p>I love the plugin so far, but I&#8217;m having trouble when I create a for in loop that uses a half open range operator<\/p>\n<p>For example:<\/p>\n<pre><code>\nlet myArr = [5, 4, 8, 10, 1]\n\nfor i in 1..&lt;myArr.count {\n  print (i)\n}\n<\/code><\/pre>\n<p>This will get displayed on a post as:<\/p>\n<pre><code>\nlet myArr = [5, 4, 8, 10, 1]\n\nfor i in 1..\n<\/code><\/pre>\n<p>Not sure what is causing this to get cut off. Any help would be much appreciated! Thank you.<\/p>\n","protected":false},"template":"","class_list":["post-12033023","topic","type-topic","status-publish","hentry","topic-tag-code","topic-tag-snippet"],"jetpack_sharing_enabled":true,"_links":{"self":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12033023","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic"}],"about":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/types\/topic"}],"version-history":[{"count":0,"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/topic\/12033023\/revisions"}],"wp:attachment":[{"href":"https:\/\/wordpress.org\/support\/wp-json\/wp\/v2\/media?parent=12033023"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}