소스 검색

exercise 5.5: null with length

George C. Privon 1 년 전
부모
커밋
ba5759a9f1
1개의 변경된 파일8개의 추가작업 그리고 0개의 파일을 삭제
  1. 8 0
      05-Lists/exercises/ex5.5.hs

+ 8 - 0
05-Lists/exercises/ex5.5.hs

@@ -0,0 +1,8 @@
+-- Exercise 5.5
+-- George C. Privon
+-- 2024-07-20
+
+null' :: [a] -> Bool
+null' ys = if length ys == 0
+           then True
+           else False