FUNCTION bag_to_set
(* SCHEMA associative_draughting; *)
FUNCTION bag_to_set(
the_bag: BAG OF GENERIC:intype
): SET OF GENERIC:intype;
LOCAL
i : INTEGER;
the_set : SET OF GENERIC:intype := [];
END_LOCAL;
IF SIZEOF(the_bag) > 0 THEN
REPEAT i := 1 TO HIINDEX(the_bag) BY 1;
the_set := the_set + the_bag[i];
END_REPEAT;
END_IF;
RETURN(the_set);
END_FUNCTION; -- bag_to_set
Referenced By
Defintion bag_to_set is references by the following definitions:
[Top Level Definitions] [Exit]Generated by STEP Tools® EXPRESS to HTML Converter
2012-03-27T17:14:12-04:00