Repository navigation
grep: add exercise - #1429
grep: add exercise#1429
Conversation
|
|
||
| boolean shouldInvertMatch = flags.contains("-v"); | ||
| //noinspection SimplifiableConditionalExpression | ||
| return shouldInvertMatch ? !matchesPattern : matchesPattern; |
There was a problem hiding this comment.
I know this can be simplified, but I think it's a lot easier to read like this. Happy to change it if people want though! 🙂
There was a problem hiding this comment.
I'm happy to keep this as it is - I like readability! 🙂
| "filtering", | ||
| "searching" | ||
| ], | ||
| "unlocked_by": "robot-name", |
There was a problem hiding this comment.
Feel free to suggest a different difficulty or a different exercise for it to be unlocked by! 🙂
I thought 5 might be a good difficulty since it has some complexity but not too much. And robot-name is also about strings and pattern matching (it has difficulty 5 as well) so I thought it might be a good fit for unlocked by 🙂
There was a problem hiding this comment.
I agree - this seems like a good fit!
sjwarner-bp
left a comment
There was a problem hiding this comment.
Thanks for the new exercise @FridaTveit!
I've left one comment but I am happy with this 🙂
| include 'word-search' | ||
| include 'wordy' | ||
| include 'zipper' | ||
| include 'grep' |
There was a problem hiding this comment.
Are these exercises meant to be alphabetised? 🙂
There was a problem hiding this comment.
Yes they are, thanks for reminding me! Will move grep so that it's in the correct order 🙂
|
|
||
| boolean shouldInvertMatch = flags.contains("-v"); | ||
| //noinspection SimplifiableConditionalExpression | ||
| return shouldInvertMatch ? !matchesPattern : matchesPattern; |
There was a problem hiding this comment.
I'm happy to keep this as it is - I like readability! 🙂
| "filtering", | ||
| "searching" | ||
| ], | ||
| "unlocked_by": "robot-name", |
There was a problem hiding this comment.
I agree - this seems like a good fit!
|
Thanks for the new exercise @FridaTveit - great job! 🎆 |
Reviewer Resources:
Track Policies