inhabitmod
  1. pat
  2. xs

The same as inhabit, but if you pick a number greater than the size of the list, it wraps around, rather than sticking at the maximum value. For example, if you pick the fifth pattern of a list of three, you'll get the second one.

aliases: pickmodSqueeze()

parametertype
pat
xs
  • any
returns