vault backup: 2025-02-24 20:30:23

This commit is contained in:
Dane Sabo 2025-02-24 20:30:23 -05:00
parent 5a979d9bff
commit 1896846e77

View File

@ -14,3 +14,7 @@ boomBangs xs = [ if x< 10 then "BOOM!" else "BANG!" | x <- xs, odd x]
schtankyList x = [ x*y | x <- [2,5,10], y <- [8,10,11]]
-- Now Writing our own custom list function
length' xs = sum [1 | _ <- xs]
-- use dummy variable _, draw an element from a list and replace it with 1. Sum all of those.