Skip to content

Instantly share code, notes, and snippets.

@pasindud
Last active June 3, 2020 14:04
Show Gist options
  • Save pasindud/fb5b8834db61a1409d46420c892439fc to your computer and use it in GitHub Desktop.
Save pasindud/fb5b8834db61a1409d46420c892439fc to your computer and use it in GitHub Desktop.
void main() {
final a = ['a', 'b', 'c'];
final b = [
for (final s in a)
for (final t in a) if (s != t) '${s}_$t'
];
print(b);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment