| Function: !Global Constants | Top | Globals Index | Next |
|
(Global Constants) - Protected lc-chars: Lower-case alphabetic characters uc-chars: Upper-case alphabetic characters alpha: Upper and lower case characters alphanum: Upper/lower case characters and numerics |
| Function: aligned? | Top | Globals Index | Back | Next |
|
(aligned? 12 3) => true, (aligned? 12 5) => nil Returns if v is evenly divisible by n |
| Function: cd | Top | Globals Index | Back | Next |
|
(cd <str-path>) => Change directory to <str-path> |
| Function: cgi? | Top | Globals Index | Back | Next |
|
syntax: (cgi?) Are we in a cgi environment? |
| Function: clear | Top | Globals Index | Back | Next |
|
(clear val) => "" (if val is string) => () (If val is list) Argument: <list-or-string> Remember to quote Note!: This is a destructive function. |
| Function: compose | Top | Globals Index | Back | Next |
|
(compose <lst-l> <sep=" ">) Takes a list, converts members to strings, evaluating only When preceded by a , and joins with a seperator. |
| Function: data? | Top | Globals Index | Back | Next |
|
(data? ()) => nil, (data? "yes") => true Does argument have any meaningful data? |
| Function: either | Top | Globals Index | Back | Next |
|
(either <condition> <true-clause> else <false-clause>) If condition is true, evaluates all expression up to else If condition is false,evaluates all expressions following else WARNING!: Using in loops can cause great performance penalties, if is at least 16 times faster |
| Function: even? | Top | Globals Index | Back | Next |
|
(even? 4) => true, (even? 5) => nil Is argument evenly divisible by 2 |
| Function: filesize | Top | Globals Index | Back | Next |
|
(filesize "myfile.txt") => <int-size-of-file> Get the size of the file |
| Function: fourth | Top | Globals Index | Back | Next |
|
(fourth (1 2 3 4)) => 4 returns fourth element |
| Function: halt | Top | Globals Index | Back | Next |
|
(halt <str-optional>) (exit) and if needed, leave a message |
| Function: inspect | Top | Globals Index | Back | Next |
|
syntax: (inspect <context-obj>) Print out names and values of context members |
| Function: ls | Top | Globals Index | Back | Next |
|
(ls <the current directory>) Args:: "*" - find any substring "$" - substring at end "^" - substring at beginning nil - all of directory |
| Function: ltrim | Top | Globals Index | Back | Next |
|
(ltrim <str-target> <str-charstrimmed>) shortcut for (trim target of whitespace at beginning) |
| Function: ltrims | Top | Globals Index | Back | Next |
|
syntax: (ltrims <str-target> <str-removed>) example: (ltrims "onething" "one") => "thing" |
| Function: merge | Top | Globals Index | Back | Next |
|
syntax: (merge <lst-1> <lst-2> <lst...n>) Description:: Interweave two lists Example: (merge (1 2 3) ("one" "two" "three")) => ((1 "one")(2 "two")(3 "three")) |
| Function: mold | Top | Globals Index | Back | Next |
|
param: (mold s) converts a symbol to a string and removes context prefix |
| Function: mrk | Top | Globals Index | Back | Next |
|
(mrk <str-may-be-empty>) Just an obvious mark |
| Function: MTime | Top | Globals Index | Back | Next |
|
(MTime "myfile.txt") => <int-modification-time> param: <str-filename> - name of file. required param: <sym-mode> - one of: seconds, minutes, hours, days with mode parameter, calculate time since last modification default:: seconds |
| Function: pad | Top | Globals Index | Back | Next |
|
syntax: (pad <lst-src> <int-length> <optional-any-val>) usage: "pads" list with items up to length, if not val, pad with nils |
| Function: parseint | Top | Globals Index | Back | Next |
|
syntax: (parseint "abc123.txt") => 123 return: First embedded integer or nil |
| Function: pass | Top | Globals Index | Back | Next |
|
(pass) Simply do nothing. Good for readability |
| Function: path-add | Top | Globals Index | Back | Next |
|
(path-add <str-path> <str-added>) Extend a path resolving beginning and ending forward slashes |
| Function: path-chop | Top | Globals Index | Back | Next |
|
syntax: (path-chop <str-path>). Remove last segment of a path example: (chop-path "/one/two/three") => "/one/two" |
| Function: putb | Top | Globals Index | Back | Next |
|
syntax: (putb "onemorething" "more") => "one" and returns "thing" <str> String to print <break-point> Substring to print _TO_ Return If break-point is found, substring following or nil |
| Function: pwd | Top | Globals Index | Back | Next |
|
syntax: (pwd) => get the current directory |
| Function: rm | Top | Globals Index | Back | Next |
|
syntax: (rm filename) => delete <str filename> unix only Delete the file |
| Function: rtrims | Top | Globals Index | Back | Next |
|
(rtrims "onething" "thing") => "one" returns first argument with second arg removed from end (rtrims "one ") => "one" Returns argument trimmed of whitespaces from end |
| Function: rtrims | Top | Globals Index | Back | Next |
|
(rtrims "onething" "thing") => "one" returns first argument with second arg removed from end (rtrims "one ") => "one" Returns argument trimmed of whitespaces from end |
| Function: second | Top | Globals Index | Back | Next |
|
(second (1 2)) => 2 Return second element |
| Function: srand | Top | Globals Index | Back | Next |
|
syntax: (srand 8 "abcdefghijklmnopqrstuvwxyz") => string of 8 random chars First argument <number> Length of random string Second argument <chars> Optional. Source string, default is alpha string of upper and lower case chars return: Random string of length num |
| Function: third | Top | Globals Index | Back | Next |
|
(third (1 2 3)) => 3 Return 3rd element |
| Function: trim-thru | Top | Globals Index | Back | Next |
|
syntax: (trim-thru target src) arguments: <str-target> substring to find <str-src> source string If target found, substring following target, else original string example:: (trim-thru "@" "tim@johnsons-web.com") => "johnsons-web.com" |
| Function: type | Top | Globals Index | Back |
|
syntax: (type x) => datatype of x From http://www.alh.net/newlisp/phpbb/viewtopic.php?t=2345 Return a human-readable string describing datatype |