Last active
October 25, 2022 17:44
-
-
Save vadimtsushko/93859368d6fdb1b159193fa0df7cd247 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
void main() { | |
var barcode = '0023,023,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