Employee Id Name Time In Time Out Dept.
mce0518 Jon 2011-01-01 06:00 2011-01-01 14:00 ER
mce0518 Jon 2011-01-02 06:00 2011-01-01 14:00 ER
mce0518 Jon 2011-01-04 06:00 2011-01-01 13:00 ICU
mce0518 Jon 2011-01-05 06:00 2011-01-01 13:00 ICU
mce0518 Jon 2011-01-05 17:00 2011-01-01 23:00 ER
Employee Id Name Time In Time Out Dept.
pdm1705 Jane 2011-01-01 06:00 2011-01-01 14:00 ER
pdm1705 Jane 2011-01-02 06:00 2011-01-01 14:00 ER
pdm1705 Jane 2011-01-05 06:00 2011-01-01 13:00 ER
pdm1705 Jane 2011-01-05 17:00 2011-01-01 23:00 ER
I spent the morning putting in a comma and the afternoon removing it.
-- Gustave Flaubert, French realist novelist (1821-1880)
Sean Corfield wrote:
2. You don't need doall in strip-data - doall is needed inside with-open to realize the sequence but not after that
Employee Id Name Time In Time Out Dept.
pdm1705 Jane 01/01/2011 06:00 AM 01/01/2011 02:00 PM ER
pdm1705 Jane 01/02/2011 06:00 AM 01/02/2011 02:00 PM ER
pdm1705 Jane 01/04/2011 06:00 AM 01/04/2011 01:00 PM ER
pdm1705 Jane 01/05/2011 05:00 AM 01/05/2011 11:00 PM ER
Employee Id Name Time In Time Out Dept.
mce0518 Jon 01/01/2011 06:00 AM 01/01/2011 02:00 PM ER
mce0518 Jon 01/02/2011 06:00 AM 01/02/2011 02:00 PM ER
mce0518 Jon 01/04/2011 06:00 AM 01/04/2011 01:00 PM ICU
mce0518 Jon 01/05/2011 06:00 AM 01/05/2011 01:00 PM ICU
mce0518 Jon 01/05/2011 05:00 PM 01/05/2011 11:00 PM ER
Dan King wrote: Could you elaborate on why "doall" isn't needed in "strip-data"? As I understand it, "doall" forces lazy-sequences to be fully realized, and since "map" produces a lazy-sequence, shouldn't it be needed?
I spent the morning putting in a comma and the afternoon removing it.
-- Gustave Flaubert, French realist novelist (1821-1880)
I spent the morning putting in a comma and the afternoon removing it.
-- Gustave Flaubert, French realist novelist (1821-1880)
Sean Corfield wrote:Hope that helps?
Dan King wrote:I've changed my code to use 'first' or 'second' but there is one instance were I used 'nth' to preserve stylistic continuity, since there is no 'third' function.
I spent the morning putting in a comma and the afternoon removing it.
-- Gustave Flaubert, French realist novelist (1821-1880)
Dan King wrote:Out of curiosity and for future reference, what tool(s) do you use for debugging Clojure?
I spent the morning putting in a comma and the afternoon removing it.
-- Gustave Flaubert, French realist novelist (1821-1880)
This will take every ounce of my mental strength! All for a tiny ad:
New web page for Paul's Rocket Mass Heaters movies
https://coderanch.com/t/785239/web-page-Paul-Rocket-Mass
|