[EMAIL PROTECTED] wrote:
> Just a thought, is there any function/s from people's formerly
> favourite :-D languages, that are missing in REBOL? For example,
> there's the BASIC string functions (LEFT RIGHT MID) that Donald Dalley
> wrote about. Some time back there was a mention that REBOL didn't have
> LISP's CDR CAR functions, IIRC.
>
> Is there any others?
>
Yes, I think the most comprehensive list of various functions were those
one of Dick Whiting. It was for REBOL 1.x, but rather cool. Added to the
end of this message ...
>
> And, perhaps as a challenge/contest, any one want to write functions in
> REBOL to do the equivalent?
>
> Andrew Martin
> [EMAIL PROTECTED]
> http://members.xoom.com/AndrewMartin/
> Online @ 33,600 Baud!
> -><-
--------------------------------------
Comment: {
Most of these functions are invoked with the same arguments and
in the same order as the one of the same name within ARexx.
Use EXHELP (or HELP) command-name to see more information.
ARexx-like functions and arguments:
ABBREV str abbrev /length len
BRKSTR str int /pad pchar /rev
CENTER str cnt /pad pchar
COMPARE str str2 /case /pad pchar
COMPRESS str /pad pchar
COPIES str cnt
DELSTR str start cnt
DELWORD str start cnt
FMTSTR str [ints] str2|[str2 str3 ...]
INSSTR str2 str pos
LASTPOS pattern str /case /before pos
LASTWORD str
LEFT str cnt /pad pchar
OVERLAY str ovstr start /length len /pad pchar
POS pattern str /case /after pos
REPLSTR str old new /case
REVERSE str
RIGHT str cnt /pad pchar
SCANSTR str delim /first /n wordnum /last /cnt
SPACE str cnt /pad pchar
STRIP str /head /tail /pad pchar
SUBSTR str start cnt /pad pchar
SUBWORD str start cnt
VERIFY str str2 /case /match
WRAPTXT str cnt /pad pchar
View help for the differences between SAFETRANS/TRANSLATE
SAFETRANS str newchars oldchars /case
TRANSLATE str newchars oldchars /case
WORD str nth
WORDLENGTH str nth
WORDS str
XRANGE start end
Conversion functions:
The C2* functions expect the file %scripts/d01to255.dat to exist.
This file contains all the ascii characters from decimal 1 through
255.
Change the assignment for word d01to255 if necessary.
These two functions can be used to convert between bases. They
support
base 2 through base 36. The base argument must be of type number!
For the C2* and *2C functions, str must be a single character with
a type of string!
BASE2D str base
D2BASE int base
B2C str
B2D str
B2X str
C2B str
C2D str
C2X str
D2B int
D2C int
D2X int
X2B str
X2C str
X2D str
Additional functions:
BLOCKWORDS string
Returns a block of words constructed from the string
Only spaces are considered as word delimiterers
translate may be used to convert other characters to spaces
HELP name
OLD-HELP name
This pair changes the original HELP command to OLD-HELP.
It displays the external help file if able to and calls
the orginal help command if the file is not found.
Delete functions OLD-HELP and HELP if you don't wish
to use this method.
EXHELP name
Displays helpfile %help/default-language/*.help
INHELP name
Displays any inlined information for functions.
(This method is no longer used by this package)
LOWER str
An alias for the REBOL LOWERCASE function
UPPER str
An alias for the REBOL UPPERCASE function
}