Skip to content

Instantly share code, notes, and snippets.

@vadimtsushko
Created October 25, 2022 17:04
Show Gist options
  • Save vadimtsushko/5a6d1ae74f1540f6be1482c9902a2c08 to your computer and use it in GitHub Desktop.
Save vadimtsushko/5a6d1ae74f1540f6be1482c9902a2c08 to your computer and use it in GitHub Desktop.
void main() {
var barcode = '0023,023,23,45,567';
var barcodeOut = barcode.split(',')
.map((e) => int.parse(e))
.map((e) => e.toString())
.toSet()
.join(',');
print(barcodeOut);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment