{"id":7368,"date":"2012-09-12T14:49:31","date_gmt":"2012-09-12T09:19:31","guid":{"rendered":"https:\/\/tothenewco.pro\/blog\/?p=7368"},"modified":"2014-12-17T09:14:19","modified_gmt":"2014-12-17T03:44:19","slug":"two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile","status":"publish","type":"post","link":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/","title":{"rendered":"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile"},"content":{"rendered":"<p>Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true).<br \/>\n<br \/>\n Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only.<br \/>\n<br \/>\nThe <strong>takeWhile<\/strong> method considers each element one by one in order of definition till the condition does not fail.<br \/>\ne.g.<\/p>\n<p>[java]<br \/>\nList marks = [2,1,4,8,5,7,9,12]<\/p>\n<p>println marks.takeWhile{it &lt; 6} <\/p>\n<p>\/\/Output: [2, 1, 4]<br \/>\n[\/java]<br \/>\nAs soon as <strong>takeWhile<\/strong> method found an element greater than 6 (in above example) by processing elements in the order of definition, it stopped considering more elements.<br \/>\n<br \/>\nUsing <strong>takeWhile<\/strong> method with Map:<\/p>\n<p>[java]<br \/>\nMap m  = [&quot;groovy&quot;:8,&quot;grails&quot;:9,&quot;database&quot;:6,&quot;java&quot;:1,&quot;gorm&quot;:7,&quot;html&quot;:2,&quot;javascript&quot;:3]<\/p>\n<p>println m.takeWhile{it.value &gt; 7 } <\/p>\n<p>\/\/Output:  [groovy:8, grails:9]<\/p>\n<p>println m.takeWhile{it.key != &quot;html&quot; } <\/p>\n<p>\/\/Output: [groovy:8, grails:9, database:6, java:1, gorm:7]<\/p>\n<p>[\/java]<\/p>\n<p>Using <strong>takeWhile<\/strong> method with char sequence: <\/p>\n<p>[java]<br \/>\nString line = &quot;Grails is a web framework based on the Groovy language.&quot;<\/p>\n<p>println line.takeWhile { it &lt; &#8216;x&#8217; }  <\/p>\n<p>\/\/Output: Grails is a web framework based on the Groov<\/p>\n<p>[\/java]<\/p>\n<p>The <strong>takeWhile<\/strong> method considers each character in character sequence one by one till the condition does not fail.<br \/>\n<br \/>\nMoving on to <strong>dropWhile<\/strong> method, It ignores all the elements in order of definition till the condition does not meet.<\/p>\n<p>[java]<br \/>\nList marks = [&#8216;c&#8217;,&#8217;g&#8217;,&#8217;f&#8217;,&#8217;n&#8217;,&#8217;b&#8217;,&#8217;h&#8217;,&#8217;y&#8217;]<\/p>\n<p>println marks.dropWhile{it &lt; &#8216;m&#8217;} \/\/ It will print [n, b, h, y]<br \/>\n[\/java]<\/p>\n<p>In above example, the <strong>dropWhile<\/strong> method ignored all the list elements(&#8216;c&#8217;,&#8217;g&#8217;,&#8217;f&#8217;,&#8217;n&#8217;) till the condition did not meet.<\/p>\n<p>Using <strong>dropWhile<\/strong> method with map<\/p>\n<p>[java]<br \/>\nMap m  = [&quot;groovy&quot;:4,&quot;grails&quot;:6,&quot;database&quot;:9,&quot;java&quot;:1,&quot;gorm&quot;:7,&quot;html&quot;:2,&quot;javascript&quot;:3]<\/p>\n<p>println m.dropWhile{it.value &lt; 7 } <\/p>\n<p>\/\/ Output: [database:9, java:1, gorm:7, html:2, javascript:3]<\/p>\n<p>println m.dropWhile{it.key != &quot;html&quot; } <\/p>\n<p>\/\/ Output: [html:2, javascript:3]<br \/>\n[\/java]<\/p>\n<p>Using <strong>takeWhile<\/strong> method with char sequence<\/p>\n<p>[java]<br \/>\nString line = &quot;Grails is a web framework based on the Groovy language.&quot;<\/p>\n<p>println line.dropWhile { it &lt; &#8216;x&#8217; }  \/\/y language.<\/p>\n<p>[\/java]<\/p>\n<p><a href=\"https:\/\/tothenewco.pro\/blog\/author\/divya\/\">Divya Setia<\/a><br \/>\n<a href=\"mailto:divya@intelligrape.com\">divya@intelligrape.com<\/a><br \/>\n<a href=\"https:\/\/twitter.com\/divs157\">https:\/\/twitter.com\/divs157<\/a> <\/p>\n","protected":false},"excerpt":{"rendered":"<p>Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only. The takeWhile [&hellip;]<\/p>\n","protected":false},"author":29,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"iawp_total_views":33,"footnotes":""},"categories":[7],"tags":[958,9,775,957],"class_list":["post-7368","post","type-post","status-publish","format-standard","hentry","category-grails","tag-dropwhile","tag-groovy","tag-groovy-2-0","tag-takewhile"],"aioseo_notices":[],"aioseo_head":"\n\t\t<!-- All in One SEO 5.0.0.1 - aioseo.com -->\n\t<meta name=\"description\" content=\"Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only. The takeWhile\" \/>\n\t<meta name=\"robots\" content=\"max-image-preview:large\" \/>\n\t<meta name=\"author\" content=\"Divya Setia\"\/>\n\t<link rel=\"canonical\" href=\"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/\" \/>\n\t<meta name=\"generator\" content=\"All in One SEO (AIOSEO) 5.0.0.1\" \/>\n\t\t<meta property=\"og:locale\" content=\"en_US\" \/>\n\t\t<meta property=\"og:site_name\" content=\"TO THE NEW BLOG\" \/>\n\t\t<meta property=\"og:type\" content=\"blog\" \/>\n\t\t<meta property=\"og:title\" content=\"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile | TO THE NEW Blog\" \/>\n\t\t<meta property=\"og:description\" content=\"Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only. The takeWhile\" \/>\n\t\t<meta property=\"og:url\" content=\"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/\" \/>\n\t\t<meta property=\"og:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta property=\"og:image:secure_url\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<meta name=\"twitter:card\" content=\"summary\" \/>\n\t\t<meta name=\"twitter:site\" content=\"@tothenew\" \/>\n\t\t<meta name=\"twitter:title\" content=\"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile | TO THE NEW Blog\" \/>\n\t\t<meta name=\"twitter:description\" content=\"Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only. The takeWhile\" \/>\n\t\t<meta name=\"twitter:image\" content=\"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png\" \/>\n\t\t<script type=\"application\/ld+json\" class=\"aioseo-schema\">\n\t\t\t{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\\\/#article\",\"name\":\"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile | TO THE NEW Blog\",\"headline\":\"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile\",\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/divya\\\/#author\"},\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"},\"datePublished\":\"2012-09-12T14:49:31+05:30\",\"dateModified\":\"2014-12-17T09:14:19+05:30\",\"inLanguage\":\"en-US\",\"commentCount\":4,\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\\\/#webpage\"},\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\\\/#webpage\"},\"articleSection\":\"Grails, dropWhile, Groovy, groovy 2.0, takeWhile\"},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\\\/#breadcrumblist\",\"itemListElement\":[{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"position\":2,\"name\":\"Grails\",\"item\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/\",\"nextItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\\\/#listItem\",\"name\":\"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile\"},\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog#listItem\",\"name\":\"Home\"}},{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\\\/#listItem\",\"position\":3,\"name\":\"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile\",\"previousItem\":{\"@type\":\"ListItem\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/category\\\/grails\\\/#listItem\",\"name\":\"Grails\"}}]},{\"@type\":\"Organization\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\",\"name\":\"TO THE NEW Blog\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/divya\\\/#author\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/divya\\\/\",\"name\":\"Divya Setia\",\"image\":{\"@type\":\"ImageObject\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\\\/#authorImage\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/d345d9c2602b32c5fdb3794e04153b69d884037772bcbf57dd439189748f6892?s=96&d=mm&r=g\",\"width\":96,\"height\":96,\"caption\":\"Divya Setia\"}},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\\\/#webpage\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\\\/\",\"name\":\"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile | TO THE NEW Blog\",\"description\":\"Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only. The takeWhile\",\"inLanguage\":\"en-US\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\\\/#breadcrumblist\"},\"author\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/divya\\\/#author\"},\"creator\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/author\\\/divya\\\/#author\"},\"datePublished\":\"2012-09-12T14:49:31+05:30\",\"dateModified\":\"2014-12-17T09:14:19+05:30\"},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#website\",\"url\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/\",\"name\":\"TO THE NEW Blog\",\"inLanguage\":\"en-US\",\"publisher\":{\"@id\":\"https:\\\/\\\/www.tothenew.com\\\/blog\\\/#organization\"}}]}\n\t\t<\/script>\n\t\t<!-- All in One SEO -->\n\n","aioseo_head_json":{"title":"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile | TO THE NEW Blog","description":"Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only. The takeWhile","canonical_url":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/","robots":"max-image-preview:large","keywords":"","webmasterTools":{"miscellaneous":""},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/#article","name":"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile | TO THE NEW Blog","headline":"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile","author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/divya\/#author"},"publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"},"datePublished":"2012-09-12T14:49:31+05:30","dateModified":"2014-12-17T09:14:19+05:30","inLanguage":"en-US","commentCount":4,"mainEntityOfPage":{"@id":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/#webpage"},"isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/#webpage"},"articleSection":"Grails, dropWhile, Groovy, groovy 2.0, takeWhile"},{"@type":"BreadcrumbList","@id":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/#breadcrumblist","itemListElement":[{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","position":1,"name":"Home","item":"https:\/\/tothenewco.pro\/blog","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/grails\/#listItem","name":"Grails"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/grails\/#listItem","position":2,"name":"Grails","item":"https:\/\/tothenewco.pro\/blog\/category\/grails\/","nextItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/#listItem","name":"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile"},"previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog#listItem","name":"Home"}},{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/#listItem","position":3,"name":"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile","previousItem":{"@type":"ListItem","@id":"https:\/\/tothenewco.pro\/blog\/category\/grails\/#listItem","name":"Grails"}}]},{"@type":"Organization","@id":"https:\/\/tothenewco.pro\/blog\/#organization","name":"TO THE NEW Blog","url":"https:\/\/tothenewco.pro\/blog\/"},{"@type":"Person","@id":"https:\/\/tothenewco.pro\/blog\/author\/divya\/#author","url":"https:\/\/tothenewco.pro\/blog\/author\/divya\/","name":"Divya Setia","image":{"@type":"ImageObject","@id":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/#authorImage","url":"https:\/\/secure.gravatar.com\/avatar\/d345d9c2602b32c5fdb3794e04153b69d884037772bcbf57dd439189748f6892?s=96&d=mm&r=g","width":96,"height":96,"caption":"Divya Setia"}},{"@type":"WebPage","@id":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/#webpage","url":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/","name":"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile | TO THE NEW Blog","description":"Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only. The takeWhile","inLanguage":"en-US","isPartOf":{"@id":"https:\/\/tothenewco.pro\/blog\/#website"},"breadcrumb":{"@id":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/#breadcrumblist"},"author":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/divya\/#author"},"creator":{"@id":"https:\/\/tothenewco.pro\/blog\/author\/divya\/#author"},"datePublished":"2012-09-12T14:49:31+05:30","dateModified":"2014-12-17T09:14:19+05:30"},{"@type":"WebSite","@id":"https:\/\/tothenewco.pro\/blog\/#website","url":"https:\/\/tothenewco.pro\/blog\/","name":"TO THE NEW Blog","inLanguage":"en-US","publisher":{"@id":"https:\/\/tothenewco.pro\/blog\/#organization"}}]},"og:locale":"en_US","og:site_name":"TO THE NEW BLOG","og:type":"blog","og:title":"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile | TO THE NEW Blog","og:description":"Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only. The takeWhile","og:url":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/","og:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","og:image:secure_url":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png","twitter:card":"summary","twitter:site":"@tothenew","twitter:title":"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile | TO THE NEW Blog","twitter:description":"Today I found two very interesting methods: takeWhile and dropWhile. The names itself reveals their work i.e. takeWhile (consider while some condition is true) and dropWhile (ignore while some condition is true). Although, these methods have been added to Groovy 1.8.7, but for character sequence, these methods are supported in Groovy 2.0 only. The takeWhile","twitter:image":"https:\/\/tothenewco.pro\/blog\/wp-content\/themes\/ttn\/images\/social-logo.png"},"aioseo_meta_data":{"post_id":"7368","title":null,"description":null,"keywords":null,"keyphrases":null,"primary_term":null,"canonical_url":null,"og_title":null,"og_description":null,"og_object_type":"default","og_image_type":"default","og_image_url":null,"og_image_width":null,"og_image_height":null,"og_image_custom_url":null,"og_image_custom_fields":null,"og_video":null,"og_custom_url":null,"og_article_section":null,"og_article_tags":null,"twitter_use_og":false,"twitter_card":"default","twitter_image_type":"default","twitter_image_url":null,"twitter_image_custom_url":null,"twitter_image_custom_fields":null,"twitter_title":null,"twitter_description":null,"schema":{"blockGraphs":[],"customGraphs":[],"default":{"data":{"Article":[],"Course":[],"Dataset":[],"FAQPage":[],"Movie":[],"Person":[],"Product":[],"ProductReview":[],"Car":[],"Recipe":[],"Service":[],"SoftwareApplication":[],"WebPage":[]},"graphName":"Article","isEnabled":true},"graphs":[]},"schema_type":null,"schema_type_options":null,"pillar_content":false,"robots_default":true,"robots_noindex":false,"robots_noarchive":false,"robots_nosnippet":false,"robots_nofollow":false,"robots_noimageindex":false,"robots_noodp":false,"robots_notranslate":false,"robots_max_snippet":null,"robots_max_videopreview":null,"robots_max_imagepreview":"large","priority":null,"frequency":null,"local_seo":null,"limit_modified_date":false,"created":"2021-04-29 15:24:59","updated":"2024-02-29 08:52:31","focus_keyword":null,"additional_keywords":null,"truseo_locale":null,"ai":null,"breadcrumb_settings":null,"seo_analyzer_scan_date":null},"aioseo_breadcrumb":"<div class=\"aioseo-breadcrumbs\"><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\" title=\"Home\">Home<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\t<a href=\"https:\/\/tothenewco.pro\/blog\/category\/grails\/\" title=\"Grails\">Grails<\/a>\n\t\t<\/span><span class=\"aioseo-breadcrumb-separator\">&raquo;<\/span><span class=\"aioseo-breadcrumb\">\n\t\t\tTwo Interesting methods in Groovy 2.0 : takeWhile and dropWhile\n\t\t<\/span><\/div>","aioseo_breadcrumb_json":[{"label":"Home","link":"https:\/\/tothenewco.pro\/blog"},{"label":"Grails","link":"https:\/\/tothenewco.pro\/blog\/category\/grails\/"},{"label":"Two Interesting methods in Groovy 2.0 : takeWhile and dropWhile","link":"https:\/\/tothenewco.pro\/blog\/two-interesting-methods-in-groovy-2-0-takewhile-and-dropwhile\/"}],"_links":{"self":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/7368","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/users\/29"}],"replies":[{"embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/comments?post=7368"}],"version-history":[{"count":0,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/posts\/7368\/revisions"}],"wp:attachment":[{"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/media?parent=7368"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/categories?post=7368"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/tothenewco.pro\/blog\/wp-json\/wp\/v2\/tags?post=7368"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}