DQ_Count ( deque )
Returns the number of items in a deque (stack, queue)
Average rating: 4.3 (30 votes) Log in to vote
Stephen Hanna Stephen J. Hanna Consulting http://www.sjhanna.com |
Function definition: (Copy & paste into FileMaker's Edit Custom Function window)
This is the "count" function of the DeQue (double-ended queue) function package. It returns the number of items in the specified DeQue. See DQ_New() for a complete description.
Typical usage scenario:
Set Variable [ $myDeque ; DQ_New ( "apple " ) ]
Set Variable [ $dummy ; DQ_Push ( $myDeque ; "banana" ) ]
Set Variable [ $dummy ; DQ_Put ( $myDeque ; "kumquat" ) ]
Set Variable ( $count ; DQ_Count ( $myDeque ) ] // $count = 3
Comments
Note: these functions are not guaranteed or supported by BrianDunning.com. Please contact the individual developer with any questions or problems.