package lambdapi
Install
dune-project
Dependency
Authors
Maintainers
Sources
sha256=1066aed2618fd8e6a400c5147dbf55ea977ce8d3fe2e518ac6785c6775a1b8be
sha512=f7f499626aba92e070ae69581299a58525973fdbfd04a160ed3ac89209fb6cbe307b816d0b23e1b75bc83467ce8b4b0530c6f9816eaf58f7a07fde65a450106c
doc/lambdapi.lplib/Lplib/Extra/index.html
Module Lplib.ExtraSource
time f x times the application of f to x, and returns the evaluation time in seconds together with the result of the application.
Exception raised by the timeout function on a timeout.
timeout nbs f x computes f x with a timeout of nbs seconds. The exception Timeout is raised if the computation takes too long, otherwise everything goes the usual way.
input_lines ic reads the input channel ic line by line and returns its contents. The trailing newlines are removed in lines. The input channel is not closed by the function.
run_process cmd runs the command cmd and returns the list of the lines that it printed to its standard output (if the command was successful). If the command failed somehow, then None is returned.
file_time fname returns the modification time of file fname represented as a float. neg_infinity is returned if the file does not exist.
more_recent source target checks whether the target (produced from the source file) should be produced again. This is the case when source is more recent than target.
files f d returns all the filenames in d and its sub-directories recursively satisfying the function f, assuming that d is a directory.