Проблем с Predicate Party в Functional Programming
Условието:
Ivancho’s parents are on a vacation for the holidays and he is planning an epic party at home. Unfortunately, his organizational skills are next to non-existent, so you are given the task to help him with the reservations.
On the first line, you receive a list with all the people that are coming. On the next lines, until you get the "Party!" command, you may be asked to double or remove all the people that apply to a given criteria. There are three different criteria:
- Everyone that has his name starting with a given string
- Everyone that has a name ending with a given string
- Everyone that has a name with a given length.
Finally, print all the guests who are going to the party separated by ", " and then add the ending "are going to the party!". If there are no guests going to the party print "Nobody is going to the party!".
Примери:
1ви:
Pesho Misho Stefan
Remove StartsWith P
Double Length 5
Party!
2ри:
Pesho
Double StartsWith Pesh
Double EndsWith esho
Party!
3ти:
Pesho
Remove StartsWith P
Party!
Примерните тестове минават. Дава ми 60/100 защото някъде имам Runtime Error. Провах няколко кейса, но не намирам къде гърми.
Моля помогнете по моя код: