Le lun. 24 nov. 2025 à 08:29, 'Ralf Hemmecke' via FriCAS - computer
algebra system <[email protected]> a écrit :
>
> As far as I can tell, both versions are syntactically correct.

Ok, so I was misled.

> I would agree, though, that adding a comma, looks more pleasing.
> Maybe the following sessing helps to understand.
>
> There is an elt function call, if there is no comma.
>
> https://fricas.github.io/api/StringAggregate.html#l537472696e67416767726567617465-656c74

Totally unaware of this, it's a pity. I concatenate a lot of strings.
Thanks a lot!

> Ralf
>
> %%% (1) -> concat ["a", "b" "c"]
>
>     (1)  "abc"
>                                         Type: String
> %%% (2) -> concat ["a", "b", "c"]
>
>     (2)  "abc"
>                                         Type: String
> %%% (3) -> # ["a", "b" "c"]
>
>     (3)  2
>                                         Type: PositiveInteger
> %%% (4) -> # ["a", "b", "c"]
>
>     (4)  3
>                                         Type: PositiveInteger
> %%% (5) -> ["a", "b" "c"]
>
>     (5)  ["a", "bc"]
>                                         Type: List(String)
> %%% (6) -> ["a", "b", "c"]
>
>     (6)  ["a", "b", "c"]
>                                         Type: List(String)
> %%% (7) -> ["a", "b""c"]
>
>     (7)  ["a", "bc"]
>                                         Type: List(String)
>

So I will look deeper into this, particularly the generated Lisp code.
Thanks again that's very good to know.

Greg

-- 
You received this message because you are subscribed to the Google Groups 
"FriCAS - computer algebra system" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/fricas-devel/CAHnU2db%3Dt6P%2BC9emsXUbF9Wn%2BZeVFYkXEB%3DnJqUNcieA539L%2Bw%40mail.gmail.com.

Reply via email to