|
|
DataMuseum.dkPresents historical artifacts from the history of: Rational R1000/400 Tapes |
This is an automatic "excavation" of a thematic subset of
See our Wiki for more about Rational R1000/400 Tapes Excavated with: AutoArchaeologist - Free & Open Source Software. |
top - metrics - downloadIndex: B T
Length: 932 (0x3a4)
Types: TextFile
Names: »B«
└─⟦180fe333a⟧ Bits:30000405 8mm tape, Rational 1000, SW CATALOG, 10_20_0
└─⟦180fe333a⟧ Bits:30000537 8mm tape, Rational 1000, SW Catalog 10_20_0
└─⟦5cb1d1d7f⟧ »DATA«
└─⟦3b1ee7bd8⟧
└─⟦this⟧
separate (Halstead_List)
function Frequency_Of (This_Item : in Item; In_This : in List) return Natural is
--==============================================================
-- Returns frequency of an item in a given list. If the item ==
-- does not EXIST, ZERO will be returned. ==
--==============================================================
Current_Pointer : List := In_This;
begin
-- Frequency_Of
Find_Item:
while Current_Pointer /= null loop
if Is_Equal (Left => Current_Pointer.Location_Of_Item.all,
Right => This_Item) then
return Current_Pointer.Frequency;
else
-- advance the current pointer to the next node
Current_Pointer := Current_Pointer.Next;
end if;
end loop Find_Item;
-- didn't find the item
return 0;
end Frequency_Of;