Text processing/2: Difference between revisions
Content added Content deleted
(→{{header|Go}}: gofmt; validate date field; use bufio.Scanner to simplify and remove long line err; simplify map handling, in particular remove string([]byte(f[0])) as f[0] is already a string) |
m (→{{header|zkl}}: update) |
||
Line 2,415: | Line 2,415: | ||
datep=date; |
datep=date; |
||
if (line.replace("\t"," ").split(" ").filter()[1,*] // blow fields apart, drop date |
if (line.replace("\t"," ").split(" ").filter()[1,*] // blow fields apart, drop date |
||
.pump(Void, |
.pump(Void,Void.Read, // get (reading,status) |
||
fcn(_,s){ // stop on first problem status and return True |
fcn(_,s){ // stop on first problem status and return True |
||
if(s.strip().toInt()<1) T(Void.Stop,True) else False |
if(s.strip().toInt()<1) T(Void.Stop,True) else False |