Tomlex.ListParser

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

Source

Summary

parse(list_string)

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

Functions

parse(list_string)

Specs:

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]]
Source