All pastes #574041 Raw Edit

avl

public text v1 · immutable
·published 2007-06-18 12:22 UTC
rendered paste body
-----------------------------------
   --  PROCEDURE RotationLeftRight  --
   -----------------------------------

   function RotationLeftRight (
         U : in     Set;
         V : in     Set)
     return Set is

      TMP : Set;

   begin
      Ada.Text_IO.Put ("LeftRight");
      Ada.Text_IO.New_Line;

      TMP := RotationLeft (V, V.Right);
      return RotationRight (U, TMP);

   end RotationLeftRight;


   -----------------------------------
   --  FUNCTION RotationRightLeft  --
   -----------------------------------

   function RotationRightLeft (
         U : in     Set;
         V : in     Set)
         return Set is
            TMP : Set;
   begin
      Ada.Text_IO.Put ("RightLeft");
      Ada.Text_IO.New_Line;

      TMP := RotationRight (V, V.Left);
      return RotationLeft (U, TMP);
   end RotationRightLeft;