소스 검색

exercise 5.6: last with head and reverse

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

+ 6 - 0
05-Lists/exercises/ex5.6.hs

@@ -0,0 +1,6 @@
+-- Exercise 5.6
+-- George C. Privon
+-- 2024-07-20
+
+last' :: [a] -> a
+last' = head . reverse