English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية

Erlang Tuple tuple_to_list Method

Erlang Tuple

This method converts a tuple to a list.

Syntax

tuple_to_list(list)

Parameter

  • Tuple −This is the tuple that needs to be converted to a list.

Return Value

Returns a list based on the provided tuple.

-module(helloworld). 
-export([start/0}). 
start() -> 
   io:fwrite("~w",[tuple_to_list({1,2,3}).

Output Result

The output of the above program is as follows

[1,2,3]

Erlang Tuple