Le mer. 24 janv. 2024 à 11:44, Qian Yun <
oldk...@gmail.com> a écrit :
>
> Are you replacing one char with another char,
> or are you replacing n chars with n chars?
I would like both :) And eventually n chars with m chars like:
replace("abcd", "cd", "efgh")
=> "abefgh"
> There's Lisp function SUBSTITUTE and REPLACE, but not very easy to use.
> A wrapper is needed.
Oh, thanks, I forgot. I use another technique not available in FriCAS
for now though, but that could be handy I think.
>
> - Qian
>
> On 1/24/24 18:32, Grégory Vanuxem wrote:
> > Hello,
> >
> > Small question, is there a simple to use function to replace some
> > characters or strings in a string, for example:
> >
> > replace("ababab", "b", "c")
> > => "acacac"
> >
> > Regards,
> >
> > - 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
fricas-devel...@googlegroups.com.
> To view this discussion on the web visit
https://groups.google.com/d/msgid/fricas-devel/de204043-b21c-4998-84a5-95e44483362f%40gmail.com.