Jump to content

Prolog split up a list

- - - - -

  • Please log in to reply
No replies to this topic

#1
TheTest

TheTest

    Newbie

  • Members
  • Pip
  • 1 posts
Hello!

I'm trying to split up a list made up off 4 data fields separated with a tab.

I have managed to read the lines from a file and Prolog makes each line in to a list of ASCII codes.

I'm totally lost at this and all I know is that the ASCII code for tab is 9 so I wish to split the list in to 4 smaller lists whenever there is a 9.

How can I manage this?




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users