


% -*- texinfo -*-
% @deftypefn {Function File} {} runlength (@var{x})
% Find the lengths of all sequences of common values. Return the
% vector of lengths and the value that was repeated.
%
% @example
% @group
% runlength ([2, 2, 0, 4, 4, 4, 0, 1, 1, 1, 1])
% @result{} [2, 1, 3, 1, 4]
% @end group
% @end example
% @end deftypefn