diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-16 06:42:00 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-16 06:42:00 -0700 |
commit | 7979d22760e2eb6d29a39cbdd1b164e364f5f721 (patch) | |
tree | d08952fab9f44a7653333f2aaca3cce0f8dfefc7 /mpi/mpi-types.h | |
parent | 14c16d2e3454f04060c858c5c41c5d946cb69a41 (diff) | |
download | txr-7979d22760e2eb6d29a39cbdd1b164e364f5f721.tar.gz txr-7979d22760e2eb6d29a39cbdd1b164e364f5f721.tar.bz2 txr-7979d22760e2eb6d29a39cbdd1b164e364f5f721.zip |
New length method on structures.
With this change, nreverse is possible on a struct,
if it has lambda, lambda-set and length methods.
* lib.c (length_s): New symbol variable.
(length): Check for length method and call it,
in preference to checking for car method and falling
back on cdr-based length.
(empty): If object has a length method, call it and
compare result to zero.
(obj_init): Initialize length_s.
* txr.1: Documented. We now have the concepts of structs
being vector-like sequences or list-like sequences.
Diffstat (limited to 'mpi/mpi-types.h')
0 files changed, 0 insertions, 0 deletions