Skip to content

Words ​

The strings of length sizesize over a basebase-letter alphabet {1,…,base}\{1, …, base\}.

Words(size, base)the strings of length sizesize over a basebase-letter alphabet {1,…,base}\{1, …, base\}
Typed signatures
TypePackageApplies
(integer<0..>, integer<0..>) -> indexed_collection<word>combinatoricsalways

Domain: Collections

Details
  • Count is basesizebase^{size}; the same family as Tuples, with grades reordered.

Examples

1 more kept as data, checked against the oracles
Basic #

Count(Words(3,2))=8Count(Words(3, 2)) = 8

live ↗
InCount(Words(3,2))\mathrm{Count}(\mathrm{Words}(3, 2))Out88

The first element in enumeration order

live ↗
InWords(3,2)[1]\mathrm{Words}(3, 2)[1]OutWord⁡([1,1,1]){\operatorname{Word}}([1, 1, 1])
About
Examples3
CrosswalkSageMathSymPymathlib4

See also: Tuples, BinaryWords