One sign to watch for

Your Heart At Risk <> Fri, 03 April 2015 14:04 UTC

Return-Path: <>
Received: from localhost ( []) by (Postfix) with ESMTP id A9C5B1A92FE for <>; Fri, 3 Apr 2015 07:04:15 -0700 (PDT)
X-Virus-Scanned: amavisd-new at
X-Spam-Flag: NO
X-Spam-Score: 1.4
X-Spam-Level: *
X-Spam-Status: No, score=1.4 tagged_above=-999 required=5 tests=[BAYES_50=0.8, HTML_MESSAGE=0.001, J_CHICKENPOX_36=0.6, RCVD_IN_SORBS_DUL=0.001, SPF_HELO_PASS=-0.001, SPF_PASS=-0.001, T_REMOTE_IMAGE=0.01, T_RP_MATCHES_RCVD=-0.01] autolearn=no
Received: from ([]) by localhost ( []) (amavisd-new, port 10024) with ESMTP id MsdRT1G3RhHo for <>; Fri, 3 Apr 2015 07:04:08 -0700 (PDT)
Received: from ( []) by (Postfix) with ESMTP id 027151A9300 for <>; Fri, 3 Apr 2015 07:04:07 -0700 (PDT)
Message-ID: <>
Date: Fri, 03 Apr 2015 07:04:05 -0700
From: Your Heart At Risk <>
To: <>
Reply-to: <>
Subject: One sign to watch for
Content-Type: multipart/alternative; boundary="===============6794596727426157083=="
MIME-Version: 1.0


Will you have a Heart Attack today?

There are 4 terrifying things that can happen before you die of a heart attack
Don't Ignore These Signs  (
* Lower Your Risk by 91%


Do you have a family histoy of heart diseaase? (

Why you may be at a higher risk then you think. Take 10 seconds out of your day and be sure to do this every morning. Read More >>


HET Welness - Powell Tech Labs - 804 Glendale - Clarksville TN - [rem-settings]

Certainly not an answer, but in Python, you'd do it like this:[list(v) for k, v in groupby(lst, key=lambda x: x is not None) if k]. There isCollectors.groupingBy, but to be honest I don't understand how it works...tobias_kMar 17 at 10:30
Python is teasing me more and more every day :)Collectors.groupingBymaps the list by a property: for example grouping["a", "b", "aa", "aaa"]byString::lengthwould produce{1:["a", "b"], 2:["aa"], 3:["aaa"]}... I don't know if it could be used in my caseOneirosMar 17 at 10:39

The problems comes form the fact that the sequence is highly important here but Streams are designed to work on independent pieces of data. This is why I think that there is no solution that will not be equivalent to a Java 7's foreach. My solution converts the problem of "Split List" into a problem of "Split String" for which Java natively implemented a solution.Arnaud DenoyelleMar 17 at 10:49

I hope this goes without saying but, for production code, please keep it simple and just use for-loops. This is a great training exercise question. But it worries me that some of the solutions posted below could one day end up in production code (they got a high-score on Stackoverflow so theymustbe the right way to do it). Some poor sap will tear their hair out trying to understand thisMr SpoonMar 17 at 10:54

ArnaudDenoyelle I don't agree with you, Alexis C. showed you that it is possible (I'm testing his solution) @Mr Spoon yes, this is just a training exerciseOneirosMar 17 at 11:00