Skip to content

Latest commit

 

History

History
32 lines (20 loc) · 452 Bytes

string.md

File metadata and controls

32 lines (20 loc) · 452 Bytes

String

format

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

Formats values into a string on a delimiter.

  • Delimiter: {}.

Example

(format "Hello {} !" "there") ;; "Hello there!"

get

get :: String -> Integer -> String

Get the character at a position in a string. Returns "" if the string has no character at this position.

Example

(get "Hello" 0)  ;; "H"
(get "Hello" 12) ;; ""