Erlang - list_to_tuple
This method is to convert a list to a tuple.
list − This is the list which needs to be converted to a tuple.
Returns a tuple based on the list provided.
For exampleLive Demo
-module(helloworld). -export([start/0]). start() -> io:fwrite("~w",[list_to_tuple([1,2,3])]).
The output of the above program is as follows