title: How to convert an input from L to [H|T] in prolog?
body: <p>say if I have to create a function in prolog:
  dosomething(L).
  how can I make it into something that does the same thing as:
  dosomething([H|T]) where L = [H|T] so I can split the list?</p>