previous up contents next
Left: Length Up: Arithmetic functions Right: APU

Count

Count returns the number of times the First element of the path occurs in the Rest. Count fails if its argument is the empty path.

    Count:<a c b a c b a a a c> = 4.
    Count:<d c b a c b a a a c> = 0.


---------------------------------------------------------

Copyright © Roger Evans, Gerald Gazdar & Bill Keller, Tuesday 10 November 1998