tomlex v0.0.5 Tomlex.ListParser

Parses a string of lists into a list of properly casted values

Summary

Functions

Gets a string of lists and parses it into a list with all the values properly casted

Functions

parse(list_string)
parse(String.t) :: List.t

Gets a string of lists and parses it into a list with all the values properly casted.

Examples

iex> Tomlex.ListParser.parse("[1, 2, 3]")
[1, 2, 3]

iex> Tomlex.ListParser.parse("[[1],[2]]")
[[1],[2]]