Skip to content

Instantly share code, notes, and snippets.

@truizlop
Created July 24, 2018 13:30
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save truizlop/940cd215a39e795d00b319117bc59f89 to your computer and use it in GitHub Desktop.
Save truizlop/940cd215a39e795d00b319117bc59f89 to your computer and use it in GitHub Desktop.
func generateSequenceOf(lengthSmallerThan n : Int) -> Gen<ArrayOf<Player>> {
return ArrayOf<Player>.arbitrary.suchThat{ $0.getArray.count < n }
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment