Next Prev Up

Arrays

juf_array_values [SWITCH ...] NAME
Returns a list containing the values of all of the elements in the array NAME. If invoked with the -unique switch, a specific value appears only once in the list.
% array set test {whiskey drink beer drink fish food}
% juf_array_values test
drink food drink
% juf_array_values -unique test
drink food

Written by Stefan Hornburg <racke@gundel.han.de>
Last modified 10 April 1997