CLIM mail archive

[Prev][Next][Index][Thread]

accept questions



    Date: Fri, 1 Oct 1993 16:03 EDT
    From: Adam Carlson <carlson@titanic.cs.umass.edu>

    I have two questions relating to accept.

    If I have something like:

    (accept '(sequence (sequence number)))

If you want the person to be able to type in an indefinite number of
sublists, each of indefinite length, then do something like this:

 (accept '((sequence (sequence number)) :separator #\;))

Then you can type in:

 1,2,3;4,5,6  ==> ((1 2 3) (4 5 6))

or:

 1,2,3;4,5;6,7,8,9,0  ==> ((1 2 3) (4 5) (6 7 8 9 0))

Or maybe you mean that you want people to type in an indefinite number
of sublists of length 3.  If so, they do this:

 (accept '(sequence (sequence-enumerated number number number)))

then you can type in this:

 1,2,3,4,5,6,7,8,9  ==> ((1 2 3) (4 5 6) (7 8 9)) 

    How do I tell accept that I'm done with the first '(sequence number).
    The only delimiter is comma and I can't figure out how to enter a
    sequence which maps to ((1 2 3) (4 5 6)), all I can do is enter 1, 2,
    3, 4, 5, 6   which maps to ((1 2 3 4 5 6)).

See above.

I don't have time to look at the second question right now.  Maybe
somebody else does.


References:

Main Index | Thread Index