Posts by Rigotti • 315 points
3 posts
-
3
votes2
answers2119
viewsA: Resume a list without repeats
It’s been a while since you’ve been asked, but here goes my implementation. removeDup :: String -> String removeDup [] = [] removeDup [a] = [a] removeDup (x:xs) = x:(removeDup $ filter (/=x) xs)…
-
8
votes1
answer1769
viewsQ: How to clone/download a repository with just the last commit?
I read a while ago that it is possible to clone a repository in a more performative way just by downloading the last commit, that is, download the repository without previous changes of other…
-
10
votes4
answers58562
viewsQ: Css comments with // instead of /* */
Place // at the beginning of a line creates an invalid property, i.e., CSS ignores that line. div { background-color: cyan; // background-color: red; } I know the CSS standard is using /* */, but…