Name
SUtils - Various Utility Functions
Synopsis
Welcome to MzScheme version 300, Copyright (c) 2004-2005 PLT Scheme Inc.
> (require (planet "sutil.scm" ("oesterholt" "ho-utils.plt" 1 0)))
> (glob "d:/build/sutil/*.scm")
("d:/build/sutil/scfg.scm" "d:/build/sutil/sprefs.scm" "d:/build/sutil/sutil.scm" "d:/build/sutil/units.scm")
> (glob "d:/build/sutil/*.pod")
("d:/build/sutil/index.pod" "d:/build/sutil/index.pod~")
> (glob "d:/build/sutil/*.pod$")
("d:/build/sutil/index.pod")
> (basename "d:/build/sutil/index.pod")
"index.pod"
> (basedir (build-path "d:/build/sutil/index.pod"))
"d:/build/sutil/"
> (home)
"C:\\Documents and Settings\\hdijkema\\."
> (home "local" "test")
"C:\\Documents and Settings\\hdijkema\\local\\test"
> (mkdir-p (home "local" "test"))
<executes make-directory* if directory doesn't exist already>
> (define a 10)
> (post++ a)
10
> a
11
> (++ a)
12
a
12
>(require (lib "time.ss" "srfi" "19"))
>(define a (current-date));
>(sleep 3)(define b (current-date));
>(date<? a b)
#t
>(date>? a b)
#f
And we've also got 'date<=?', 'date>=?' and 'date=?'
API
This API is not described. The Synopsis should suffice.
Info
(c) 2005 Hans Oesterholt-Dijkema. Distributed undef LGPL. Contact: send email to hans in domain elemental-programming.org. Homepage: http://www.elemental-programming.org.