You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Haskell-FER
In task 3, if : splitter " > " "123 > " give us ["123", ""], then : splitter "" "abcde" => ["a", "b", "c", "d", "e"] shouldn't look like this : splitter "" "abcde" => ["a", "b", "c", "d", "e", ""]?
Luka Hadžiegrić
unread,
Dec 14, 2017, 4:21:49 AM12/14/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Haskell-FER
No, because in the first example you have "123 > " with " > " at the end which is a sub list that we are splitting on so naturally, you would split the list on anything before and after " > ".
Also, it seems that I somehow forgot to add note to the problem text that you don't have to implement splitting on an empty list e.g. "", you have to cover minimum of one element in a list e.g. ">" or more "longsplitstring..." (of course feel free to implement everything :).
Luka Hadžiegrić
unread,
Dec 14, 2017, 4:26:26 AM12/14/17
Reply to author
Sign in to reply to author
Forward
Sign in to forward
Delete
You do not have permission to delete messages in this group
Copy link
Report message
Show original message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Haskell-FER
Actually, I did put a note that you don't have to implement splitting on empty lists, I've checked it right now :)