ACE BN BNA CG CLG COMP FM FREE HEKA IDCA NCA NCSF PART SFA SG SGA SP SYMF TAB TYP

FUNCTION: BnGenCode - generate one code

CALLING SEQUENCE:

BnGenCode(n, typecode)
BnGenCode(code, typecode)
BN[BnGenCode](n, typecode)
BN[BnGenCode](code, typecode)

PARAMETERS:

n = any positive integer
code = any list denoting a code
typecode = 'first', 'previous', 'next', 'last'

SYNOPSIS:

EXAMPLES:


> with(BN):
> BnGenCode([1, 2, 5, 7], 'next');
 
                                [1, 3, 0, 0]
 
> BnGenCode([1, 3, 0, 0], 'previous');
 
                                [1, 2, 5, 7]
 

SEE ALSO: