src/pylib/Lib/n_itertools

Source   Edit  

Types

BinOp[T] = proc (x, y: T): T
Source   Edit  

Procs

proc binOpAdd[T](x, y: T): T
Source   Edit  

Iterators

iterator accumulate[T](iterable: openArray[T]; binop: BinOp[T] = binOpAdd;
                       inital = mayZeroDefault(T)): T
Source   Edit  
iterator combinations[T](iterable: openArray[T]; r: int): seq[T]
Source   Edit  

Templates

template mayZeroDefault[T](t: typedesc[T]): T
Source   Edit