🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: pl.comp.lang.ruby
Article #647

Re: mapowanie w Rubym, przykład poproszę.

#647
From: Przemysław Kowalczyk
Date: Fri, 14 Sep 2007 18:11
11 lines
1145 bytes
On Fri, 14 Sep 2007 13:36:26 +0200, Szymon 'tichy' <fooshmoo@glombraz.org>  
wrote:

> Chodziło mi o 'zwykłą' tablicę asocjacyjną,
> tzn. taką do 'obsługi' której pomyślano metody
> assoc i rassoc

no to po prostu: a.zip(b).flatten

pzdr
	szeryf
Technical Details
Message-ID: <op.tynos1wvhwe0a4@negative-361apc>
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!not-for-mail
References: <fcdgio$cjd$1@atlantis.news.tpi.pl> <fcdqf4$s9u$1@news.onet.pl> <fcds1m$5dn$1@nemesis.news.tpi.pl>

Show Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!news-archive.icm.edu.pl!newsfeed.gazeta.pl!news.task.gda.pl!not-for-mail
From: Przemysław Kowalczyk <szeryf@negativeiq.pl>
Newsgroups: pl.comp.lang.ruby
Subject: Re: mapowanie w Rubym, przykład poproszę.
Date: Fri, 14 Sep 2007 20:11:15 +0200
Organization: CI TASK http://www.task.gda.pl/
Lines: 11
Message-ID: <op.tynos1wvhwe0a4@negative-361apc>
References: <fcdgio$cjd$1@atlantis.news.tpi.pl> <fcdqf4$s9u$1@news.onet.pl> <fcds1m$5dn$1@nemesis.news.tpi.pl>
NNTP-Posting-Host: xdsl-10757.wroclaw.dialog.net.pl
Mime-Version: 1.0
X-Trace: news2.task.gda.pl 1189793643 25972 84.40.237.5 (14 Sep 2007 18:14:03 GMT)
X-Complaints-To: abuse@news.task.gda.pl
NNTP-Posting-Date: Fri, 14 Sep 2007 18:14:03 +0000 (UTC)
User-Agent: Opera Mail/9.10 (Win32)
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit