Skip to content

Instantly share code, notes, and snippets.

@humblerookie
Created July 18, 2020 16:32
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 humblerookie/9d23ed7de78739e7d37da7304e236cd9 to your computer and use it in GitHub Desktop.
Save humblerookie/9d23ed7de78739e7d37da7304e236cd9 to your computer and use it in GitHub Desktop.
val allowedDisplayCodes = buildList<Int> {
addAll(currentDisplayCodes)
add(selectedCode)
addAll(discounts.map { it.itemCode })
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment