Skip to content

Latest commit

 

History

History
30 lines (20 loc) · 472 Bytes

string.md

File metadata and controls

30 lines (20 loc) · 472 Bytes

String

Functions

show :: (Any a) => a -> String

Transforms a value into its literal form.

(show "a") ;; "'a'"
(show 44) ;; "44"

chars :: String -> (List String)

Transforms a String into a List of the chars it contains.

(chars "Hello") ;; (Cons "H" (Cons "e" (Cons "l" (Cons "l" (Cons "o" Nil)))))

strlen :: String -> Integer

Get the length of the string.

(strlen "Hello") ;; 5