Erlang – nth
In this guide, we will discuss Erlang nth. Returns the Nth element of List. Syntax nth(N,List) Parameters N − The nth value to return from the list.Lst − The list of elements.…
In this guide, we will discuss Erlang nth. Returns the Nth element of List. Syntax nth(N,List) Parameters N − The nth value to return from the list.Lst − The list of elements.…
In this guide, we will discuss Erlang merge. Returns the sorted list formed by merging all the sub-lists of List Of Lists. All these sub-lists must be sorted prior to…
In this guide, we will discuss Erlang min. Returns the element of the list which has the minimum value. Syntax min(lst1) Parameters Lst1 − The list of elements. Return Value Returns…
In this guide, we will discuss Erlang member. Checks if an element is present in the list or not. Syntax member(element, lst1) Parameters Element − The element to search in the…
In this guide, we will discuss Erlang max. Returns the element of the list which has the maximum value. Syntax max(lst1) Parameters Lst1 − The list of elements. Return Value Returns…
In this guide, we will discuss Erlang last. Returns the last element of the list. Syntax last(lst1) Parameters Lst1 − The list of elements. Return Value Returns the last element of…
In this guide, we will discuss Erlang duplicate. Returns a list which contains N copies of the term Elem. Syntax duplicate(N,Elem) Parameters N − The number of times the element needs…
In this guide, we will discuss Erlang droplast. Drops the last element of a List. The list should be non-empty, otherwise the function will crash with a function_clause. Syntax droplast(List1)…
In this guide, we will discuss Erlang delete. Deletes an element from the list and returns a new list. Syntax delete(element,List1) Parameters Element − the element to delete from the list.List1 −…
In this guide, we will discuss Erlang append. Returns a new list List3 which is made from the elements of List1 followed by the elements of List2. Syntax append(List1,List2) Parameters…