Skip to content

Instantly share code, notes, and snippets.

@xrrocha
Last active December 16, 2020 18:12
Show Gist options
  • Save xrrocha/8db080ad96c6efec1a57c2fddc9ce91d to your computer and use it in GitHub Desktop.
Save xrrocha/8db080ad96c6efec1a57c2fddc9ce91d to your computer and use it in GitHub Desktop.
code block for README-16
// Examine text looking for matches
WORD_REGEX.findAll(text)
.forEach { match ->
// Define range of inner letters
val range: IntRange =
match.range.first + 1
until match.range.last
// ... shuffling stuff ...
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment