chickadee » data-generators » gen-alist-of

(gen-alist-of car-gen cdr-gen #!optional (size (gen-current-default-size)))procedure

Generator for an alist where each car is generated with car-gen and each cdr is generated with with cdr-gen. The size parameter specifies the size of the list that is generated. It is expected to be a thunk that returns the size as a fixnum. See with-size for a more convenient way to adjust this.