Jump to content

Functional coverage tree: Difference between revisions

m
Line 858:
foldl1(a => x => x < a ? x : a)(xs)
) : undefined;
 
// readFileLR :: FilePath -> Either String IO String
const readFileLR = fp => {
const
e = $(),
ns = $.NSString.stringWithContentsOfFileEncodingError(
$(fp).stringByStandardizingPath,
$.NSUTF8StringEncoding,
e
);
return ns.isNil() ? (
Left(ObjC.unwrap(e.localizedDescription))
) : Right(ObjC.unwrap(ns));
};
 
// root :: Tree a -> a
9,655

edits

Cookies help us deliver our services. By using our services, you agree to our use of cookies.