Skip to content

Commit

Permalink
mejoro punto 4
Browse files Browse the repository at this point in the history
  • Loading branch information
tommyrios committed May 6, 2024
1 parent cedeebe commit a5e2f46
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/Library.hs
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ paty = UnArtista "Taylor Paty" ["Shake It Off", "Lover"]
drAlvarez :: Artista
drAlvarez = UnArtista "Pitu Alvarez" ["Todo sigue igual", "Me gustas mucho", "Que vas a hacer tan sola hoy?"]


--punto 1

calificacion :: Cancion -> Number
Expand Down Expand Up @@ -47,6 +48,4 @@ artistasExitosos = filter esExitoso
--punto 4

todoJunto :: [Artista] -> [Artista]
todoJunto = filter ((> 50) . sum . map ((+ 10) . length . filter (`elem` ['a'..'z'])) . filter ((> 20) . ((+ 10) . length . filter (`elem` ['a'..'z']))) . canciones)


todoJunto = filter (\artista -> (>50) . sum . filter (>20) . map ((+10) . length . filter (`elem` ['a'..'z'])) . canciones $ artista)

0 comments on commit a5e2f46

Please sign in to comment.