Skip to content

Instantly share code, notes, and snippets.

@nntndfrk
Last active May 15, 2020 07:55
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 nntndfrk/d601e768b4f4b23fcda6b8ab5fe746a5 to your computer and use it in GitHub Desktop.
Save nntndfrk/d601e768b4f4b23fcda6b8ab5fe746a5 to your computer and use it in GitHub Desktop.
void main() {
List<String> filtered = [];
['a', 'b', 'c'].asMap().forEach((i, value) {
if (i != 1) filtered.add(value);
});
print(filtered);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment