title: Prolog convert list of string to list of numbers
body: <p>I'm new at Prolog and want to convert a list of string numbers to a list of numbers. I would appreciate an explanation, as I'm struggling with list operations in this language.</p>
  <p>Here is what I've got so far (recursively):</p>
  <pre><code>convert([], 0). # This is meant to be the simplest case, if there are no elements left in the list.
  convert([H|T], L) :- # This is meant to be executed if there are elements in the list.
     string_to_atom(H, Elm), # Built in function from [here][1].
     convert([T|_],L1). # The recursive call to the tail T. Unsure about how to call this.
  </code></pre>
  <p>Thanks in advance!</p>
  <p>Edit: link to string_to_atom function: <a href="https://www.swi-prolog.org/pldoc/man?predicate=string_to_atom/2" rel="nofollow noreferrer">https://www.swi-prolog.org/pldoc/man?predicate=string_to_atom/2</a></p>