Created
November 13, 2023 06:55
-
-
Save arialdomartini/acbe5d3f2b3f43fff223a39c5740f3a4 to your computer and use it in GitHub Desktop.
LINQ.rs
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
content | |
.lines() | |
.filter(|line| line.to_lowercase().as_str().contains(query)) | |
.collect() | |
content | |
.lines() | |
.map(|line| line.to_lowercase().as_str()) | |
.filter(|line| line.contains(query)) | |
.collect() |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment