[Date Prev] [Date Next] [Thread Prev] [Thread Next] Date Index Thread Index Search archive:
Date:Mon Aug 23 09:31:25 1999 
Subject:a little list problem 
From:Terry Dartnall 
Volume-ID:990823.01 

This little procedure is in TEACH LISTANSWERS.  It's meant to take a list such
as [a b c] and return [[a][b][c]], listifying every item in the original list.
Instead, it returns [[a] [b] c], and doesn't listify the last item in the
input list.  Can someone tell me why?  (The program in LISTANSWERS has an
output local - same difference.)

define listify(list);
vars item;
[^^(for item in list do [^item] endfor)]
enddefine;

I'm running v 14.5.

Thanks

Terry
==============================================
Terry Dartnall
School of Computing and Information Technology
Griffith University Nathan Brisbane
Queensland 4111 Australia
Phone:  61-7-3875 5020
Fax:    61-7-3875-5051
==============================================