Quick actions

cmd+k|ctrl+k

Navigation

Languages

Parse words

Snippet info

Language

Erlang

Visibility

public

Author

evine

Created

2016-10-16T05:18:58Z

Updated

2016-10-16T05:21:51Z

% escript will ignore the first line

main(_) ->
    teg("This is a sentence").
    
teg(X) ->
    teg(X,[]).

teg([],L) ->
    io:format(L),
    io:format("\\");
teg([H|T],L) when [H] =:= " " ->
    io:format(L),
    io:format("|"),
    teg(T,[]);
teg([H|T],L) ->
    teg(T,L ++ [H]).
INFO