Next: , Previous: , Up: Modules   [Contents][Index]


5.10 Nprefix

The nprefix module provides a strategy similar to ‘prefix’, but which returns the specified range of bytes. For example, the statement

MATCH dict nprefix skip#count#string

where skip and count are positive integer numbers, returns at most count headwords whose prefix matches string, omitting first skip unique matches.

The entire ‘skip#count#’ construct is optional. If not supplied, the ‘nprefix’ strategy behaves exactly as ‘prefix’.

The module is loaded using this simple statement:

load-module nprefix;