Explorar o código

exercise 5.6: last with head and reverse

George C. Privon hai 1 ano
pai
achega
17802bb80d
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  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