Erlang – duplicate
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 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…
In this guide, we will discuss Erlang any. Returns true if Pred(Elem) returns true for at least one element Elem in List. Syntax any(Pred,lst) Parameters Pred − The predicate function which…
In this guide, we will discuss Erlang all. Returns true if Pred(Elem) returns true for all elements Elem in List, otherwise false. Syntax all(Pred,lst) Parameters Pred − The predicate function which…
In this guide, we will discuss Erlang lists. The List is a structure used to store a collection of data items. In Erlang, Lists are created by enclosing the values…
In this guide, we will discuss Erlang left. The method returns the sub string from the left of the string based on the number of characters. Syntax left(str1,number) Parameters str1 −…
In this guide, we will discuss Erlang substr. The method returns the sub string from the original string based on the starting position and number of characters from the starting…
In this guide, we will discuss Erlang strThe method returns the index position of a sub string in a string. Syntax str(str1,str2) Parameters str1 − This is the string which needs…