🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.programming
Article #216509

Re: Jak zrobić grupowanie w kolejności

#216509
From: Borneq
Date: Tue, 19 Nov 2019 16:36
10 lines
1797 bytes
W dniu 19.11.2019 o 17:11, godek.maciek@gmail.com pisze:
> Tutaj jest Pythonowa wersja, w której umieściłem Haskellowe patterny i guardy w komentarzach
>              return group(t, g+[h]) ### -- warunek niespelniony
>          if g:
>              return [g] ### grouped [] g -- grupa jest niepusta
>          return [] ### grouped [] [] -- pusta grupa
>      return group(l, [])

To jest jakaś rekurencja ogonowa, którą można przenieść na pętlę nie 
zajmując stosu?
Technical Details
Message-ID: <5dd41a1d$0$544$65785112@news.neostrada.pl>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
References: <5dd2981a$0$17364$65785112@news.neostrada.pl> <9f5f4000-d6b9-4537-a7f0-561c1bfef49b@googlegroups.com> <5dd2e826$0$17359$65785112@news.neostrada.pl> <04c821c9-ecf9-447b-9242-f362a6f42a99@googlegroups.com> <f8d6cafb-dca8-4f26-8aa9-0a075b643196@googlegroups.com> <5dd3e574$0$511$65785112@news.neostrada.pl> <3c55981e-d169-4616-b281-34019224dd2b@googlegroups.com>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!news.icm.edu.pl!newsfeed.pionier.net.pl!goblin1!goblin.stu.neva.ru!newsfeed.neostrada.pl!unt-exc-02.news.neostrada.pl!unt-spo-b-01.news.neostrada.pl!news.neostrada.pl.POSTED!not-for-mail
Subject: Re: Jak zrobić grupowanie w
 kolejności
Newsgroups: pl.comp.programming
References: <5dd2981a$0$17364$65785112@news.neostrada.pl> <9f5f4000-d6b9-4537-a7f0-561c1bfef49b@googlegroups.com> <5dd2e826$0$17359$65785112@news.neostrada.pl> <04c821c9-ecf9-447b-9242-f362a6f42a99@googlegroups.com> <f8d6cafb-dca8-4f26-8aa9-0a075b643196@googlegroups.com> <5dd3e574$0$511$65785112@news.neostrada.pl> <3c55981e-d169-4616-b281-34019224dd2b@googlegroups.com>
From: Borneq <borneq@antyspam.hidden.p>
Date: Tue, 19 Nov 2019 17:36:45 +0100
User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:60.0) Gecko/20100101 Thunderbird/60.9.1
MIME-Version: 1.0
In-Reply-To: <3c55981e-d169-4616-b281-34019224dd2b@googlegroups.com>
Lines: 10
Message-ID: <5dd41a1d$0$544$65785112@news.neostrada.pl>
Organization: Telekomunikacja Polska
NNTP-Posting-Host: 91.239.205.59
X-Trace: 1574181405 unt-rea-a-02.news.neostrada.pl 544 91.239.205.59:51828
X-Complaints-To: abuse@news.neostrada.pl
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit