Jump to content

Text processing/2: Difference between revisions

m
(→‎{{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)
Line 2,415:
datep=date;
if (line.replace("\t"," ").split(" ").filter()[1,*] // blow fields apart, drop date
.pump(Void,T.fp(Void.Read,1), // get (reading,status)
fcn(_,s){ // stop on first problem status and return True
if(s.strip().toInt()<1) T(Void.Stop,True) else False
Anonymous user
Cookies help us deliver our services. By using our services, you agree to our use of cookies.