Given string 'a.bc.' -- each dot(.) is to be replaced with 0 or 1

Liste des GroupesRevenir à cl scheme 
Sujet : Given string 'a.bc.' -- each dot(.) is to be replaced with 0 or 1
De : HenHanna (at) *nospam* devnull.tb (HenHanna)
Groupes : comp.lang.scheme
Date : 18. May 2024, 10:28:37
Autres entêtes
Organisation : A noiseless patient Spider
Message-ID : <v29orm$2mr5l$1@dont-email.me>
User-Agent : Mozilla Thunderbird
How can i write this function simply?   (in Scheme (Gauche))
-- Given a string  'a.bc.' -- each dot(.) is to be replaced with 0 or 1.
        -- So the value is a list of 4 strings:
                                ['a0bc0',  'a0bc1',  'a1bc0',  'a1bc1']
-- The order is not important.
             If the string has 3 dots, the value is a list of length 8.
If the program is going to be simpler,
                        pls use, say,   (a $ b c $)  rather than  'a.bc.'

Date Sujet#  Auteur
18 May 24 * Given string 'a.bc.' -- each dot(.) is to be replaced with 0 or 13HenHanna
19 May 24 `* Re: Given string 'a.bc.' -- each dot(.) is to be replaced with 0 or 12HenHanna
24 May 24  `- Re: Given string 'a.bc.' -- each dot(.) is to be replaced with 0 or 11Jens Thiele

Haut de la page

Les messages affichés proviennent d'usenet.

NewsPortal