Have a list of users. Need to enter a character and find all users whose name starts with this character.
!!! The following tasks embedded predicates conversion symbols and lines are not used.
Have a list of users. Need to enter a character and find all users whose name starts with this character.
!!! The following tasks embedded predicates conversion symbols and lines are not used.
Copyright © 2021 Jogjafile Inc.
You could do this:
On backtrack, this should return each matching name until there aren't any more.
char_code/2andatom_codes/2are ISO predicates, but I don't know if Turbo Prolog supports them.