Fork me on GitHub

src/arraymancer/laser/private/nested_containers

  Source Edit

Procs

func getShape(s: string; parent_shape = Metadata()): Metadata {....raises: [],
    tags: [], forbids: [].}
Handle strings / avoid interpretation as openArraychar   Source Edit
func getShape[T](s: openArray[T]; parent_shape = Metadata()): Metadata
Get the shape of nested seqs/arrays Important âš : at each nesting level, only the length of the first element is used for the shape. Ensure before or after that seqs have the expected length or that the total number of elements matches the product of the dimensions.   Source Edit

Iterators

iterator flatIter(s: string): string {.noSideEffect, ...raises: [], tags: [],
                                       forbids: [].}
  Source Edit
iterator flatIter[T](s: openArray[T]): auto {.noSideEffect.}
Inline iterator on any-depth seq or array Returns values in order   Source Edit
Arraymancer Technical reference Tutorial Spellbook (How-To's) Under the hood