Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- NewElement = rebuild(List),
- NEWLIST = [NewElement, X, Y].
- rebuildlist(List) ->
- case is_list(hd(List)) of
- true -> tl(List);
- false -> ????
- end.
- if I have a list like this [[4,5],[6,8,0]] then it evaluates true and I get the tail
- if I have a list like [5,6,7,8,9,9] then it evaluates false, I dont need anything from this list.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement