RosettaCodeData/Task/Reverse-a-string/Agda/reverse-a-string.agda
2015-11-18 06:14:39 +00:00

7 lines
160 B
Agda

module reverse_string where
open import Data.String
open import Data.List
reverse_string : String String
reverse_string s = fromList (reverse (toList s))