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

Erlang is_tuple Method

Erlang Tuple

This method is used to determine whether the provided item is a tuple.

Syntax

is_tuple(tuple)

Parameter

  • Tuple −This is a tuple, it needs to be verified to see if it is really a tuple.

Return Value

If the input value is indeed a tuple, it will return true, otherwise it will return false.

-module(helloworld). 
-export([start/0}). 
start(), -> 
   P = {john,24{june,25}}, , 
   io:fwrite("~w",[is_tuple(P)]).

Output Result

The output of the above program is as follows-

true

Erlang Tuple