FUNCTION list_to_array

(* SCHEMA STRUCTURAL_FRAME_SCHEMA; *)

FUNCTION list_to_array
 		(lis : LIST [0:?] OF GENERIC : T; low,u : INTEGER) : ARRAY[low:u] OF GENERIC : T;
   LOCAL
	 n : INTEGER;
	 res : ARRAY [low:u] OF GENERIC : T;
   END_LOCAL;
	 
   n := SIZEOF(lis);
   IF (n <> (u-low +1)) THEN
	 RETURN(?);
   ELSE
	 REPEAT i := 1 TO n;
	 res[low+i-1] := lis[i];
	 END_REPEAT;
	 RETURN(res);
   END_IF;
END_FUNCTION;  (* STEP Part 42 (unchanged in 2nd edition)  *)

Referenced By

Defintion list_to_array is references by the following definitions:
DefinitionType
 b_spline_curve ENTITY
 make_array_of_array FUNCTION
 rational_b_spline_curve ENTITY


[Top Level Definitions] [Exit]

Generated by STEP Tools® EXPRESS to HTML Converter
2023-03-25T00:11:39-04:00