-module(helloworld).
-export([start/0]).
start() ->
io:fwrite("~p~n",[atom_to_binary('Erlang', utf8)]).
-module(helloworld).
-export([start/0]).
start() ->
io:fwrite("~p~n",[list_to_atom("atom1")]).
-module(helloworld).
-export([start/0]).
start() ->
io:fwrite("~p~n",[atom_to_list(atom1)]).
-module(helloworld).
-export([start/0]).
start() ->
io:fwrite(atom1),
io:fwrite("~n"),
io:fwrite("~p~n",[is_atom(atom1)]).
-module(helloworld).
-export([start/0]).
start() ->
io:fwrite(atom1),
io:fwrite("~n"),
io:fwrite(atom_1),
-module(helloworld).
-export([start/0]).
start() ->
io:fwrite("~p~n",[file:list_dir(".")]).
-module(helloworld).
-export([start/0]).
start() ->
Txt = file:read_file("Newfile.txt"),
-module(helloworld).
-import(lists,[sum/1]).
-export([start/0]).
start() ->
Lst1 = [5,6,4],
io:fwrite("~p~n",[sum(Lst1)]).
-module(helloworld).
-import(lists,[sublist/2]).
-export([start/0]).
start() ->
Lst1=[5,6,4],
io:fwrite("~p~n",[sublist(Lst1,2)]).
-module(helloworld).
-import(lists,[sort/1]).
-export([start/0]).
start() ->
Lst1=[5,6,4],
io:fwrite("~p~n",[sort(Lst1)]).
-module(helloworld).
-import(lists,[reverse/1]).
-export([start/0]).
start() ->
Lst1 = [1,2,3],
io:fwrite("~p~n",[reverse(Lst1)]).
-module(helloworld).
-import(lists,[nthtail/2]).
-export([start/0]).
start() ->
Lst1 = [1,2,3],
io:fwrite("~p~n",[nthtail(2,Lst1)]).
-module(helloworld).
-import(lists,[nth/2]).
-export([start/0]).
start() ->
Lst1 = [1,2,3],
io:fwrite("~p~n",[nth(2,Lst1)]).
-module(helloworld).
-import(lists,[merge/1]).
-export([start/0]).
start() ->
io:fwrite("~w~n",[merge([[1],[2],[3]])]).
-module(helloworld).
-import(lists,[min/1]).
-export([start/0]).
start() ->
Lst1 = [1,2,3,4],
io:fwrite("~w~n",[min(Lst1)]).
-module(helloworld).
-import(lists,[member/2]).
-export([start/0]).
start() ->
Lst1=[1,2,3,4],
io:fwrite("~w~n",[member(3,Lst1)]).
-module(helloworld).
-import(lists,[max/1]).
-export([start/0]).
start() ->
Lst1 = [1,2,3,4],
io:fwrite("~w~n",[max(Lst1)]).
-module(helloworld).
-export([start/0]).
-define(a,1).
start() ->
io:fwrite("~w",[?a]).
-module(helloworld).
-export([start/0]).
-record(person, {name = "", address}).
-record(employee, {person, id}).
-module(helloworld).
-export([start/0]).
-record(person, {name = "", id}).
start() ->
P = #person{name = "John",id = 1},
-module(helloworld).
-export([start/0]).
-record(person, {name = "", id}).
start() ->
P = #person{name = "John",id = 1},
-module(helloworld).
-export([start/0]).
start() ->
io:fwrite("~w",[tuple_to_list({1,2,3})]).
-module(helloworld).
-export([start/0]).
start() ->
io:fwrite("~w",[list_to_tuple([1,2,3])]).
-module(helloworld).
-export([start/0]).
start() ->
P = {john,24,{june,25}} ,
io:fwrite("~w",[is_tuple(P)]).
-module(helloworld).
-export([start/0]).
start() ->
P = {john,24,{june,25}} ,
io:fwrite("~w",[tuple_size(P)]).
-module(helloworld).
-export([start/0]).
start() ->
Lst1 = [{"a",1},{"b",2},{"c",3}],
-module(helloworld).
-export([start/0]).
start() ->
Lst1 = [{"a",1},{"b",2},{"c",3}],
-module(helloworld).
-export([start/0]).
start() ->
Lst1 = [{"a",1},{"b",2},{"c",3}],
-module(helloworld).
-export([start/0]).
start() ->
Lst1=[{"a",1},{"b",2},{"c",3}],
-module(helloworld).
-export([start/0]).
start() ->
Lst1 = [{"a",1},{"b",2},{"c",3}],