Gauche:Pair
Gauche
:Pair
yamasushi
(2013/05/01 06:57:47 UTC)2つの要素をもつものについて。
概要
解説
どう表すか?
(cons x y )
利点
欠点
イディオム
(list x y )
利点
欠点
イディオム
関連
概要
WikipediaJa:タプル
WikipediaEn:Tuple
WiktionaryEn:tuple
WiktionaryEn:-tuple
WiktionaryEn:n-tuple
解説
どう表すか?
どういうふうに使い分けるか?
(cons x y )
GaucheRefj:連想リスト
GaucheRefe:Association lists
利点
連想リストの要素として扱える
欠点
イディオム
(list x y )
GaucheRefj:zip
GaucheRefe:zip
利点
比較関数などにそのままapplyさせることができる。
欠点
イディオム
関連
Scheme:Pair
?
Lisp:Pair
Gauche:Singleton
Last modified : 2013/05/01 07:16:45 UTC