users-prolog
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Impressed but confused, gluing a list together...


From: Sean Charles
Subject: Re: Impressed but confused, gluing a list together...
Date: Tue, 1 Oct 2013 23:09:10 +0100

> 
> 
> GNU Prolog 1.4.4 (32 bits)
> Compiled Apr 29 2013, 20:41:58 with gcc
> By Daniel Diaz
> Copyright (C) 1999-2013 Daniel Diaz
> 
> | ?- join("ABC", "Z", X).
> 
> X = [97,[122],98,[122],99] ? ;
> 
> X = [97,[122],98,[122],99,[122]]
> 

Weird, I am using GNU Prolog too and when I run it I get this:

| ?- str_join("ABC", "Z", X).

X = [65,[90],66,[90],67] ? ;

X = [65,[90],66,[90],67,[90]]

yes

Your output has lower case values in the result variable but upper case in the 
join() call!!! Maybe just a typo?!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]