|
Subject: need a little scheme help From: Bas Peters <bpeters@xxxxxx> Date: Mon, 12 Oct 1998 16:55:25 +0200 |
I have this piece of code:
(define (*extent*)
(let ((x
(data (select-elements (descendants (if (equal? (gi) "MRCB300")
(current-node)
(ancestor "MRCB300")))
'(MRCB300-a))))
)
(if (string=?
(substring x (- (string-length x) 1) (string-length x)) ";")
(substring x 0 (- (string-length x) 1))x)
)
)
It removes the last character if the last character is a semi colon. I
would like to add a few OR statements, like this:
if ... ";" OR ":" OR "."
How can this been done within the code above?
May be I should order a usefull Scheme book.
Thanks to any help,
Regards,
Bas Peters
IDC Publishers
DSSSList info and archive: http://www.mulberrytech.com/dsssl/dssslist
| Current Thread |
|---|
|
| <- Previous | Index | Next -> |
|---|---|---|
| Re: Trying to Use SUBDOC (to solve , Tony Graham | Thread | Re: need a little scheme help, Dave Love |
| Re: Trying to Use SUBDOC (to solve , Tony Graham | Date | Re: need a little scheme help, Dave Love |
| Month |