1 package body Opt27_Pkg
is
3 type Node_Rec_T
is record
9 function Is_Null
(Node
: in Node_T
) return Boolean is
14 function Find_Elem
(Template
: Template_T
; List
: List_T
) return Node_T
is
15 Element_Found
: Boolean := False;
16 Node_Walker
: Node_T
:= null;
18 Node_Walker
:= List
.First_Node
;
20 while not Element_Found
and (Node_Walker
/= null) loop
22 if Is_Match
(Node_Walker
.Element
, Template
) then
23 Element_Found
:= True;
25 Node_Walker
:= Node_Walker
.Right
;