English | 简体中文 | 繁體中文 | Русский язык | Français | Español | Português | Deutsch | 日本語 | 한국어 | Italiano | بالعربية
This method is used to determine whether the provided item is a tuple.
is_tuple(tuple)
Tuple −This is a tuple, it needs to be verified to see if it is really a tuple.
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