ruby-dev (Japanese) list archive (unofficial mirror)
 help / color / mirror / Atom feed
* [ruby-dev:50976] [Ruby master Feature#2323] "Z".."Z".succが空
       [not found] <redmine.issue-2323.20091102161937.826@ruby-lang.org>
@ 2020-12-12  4:17 ` mame
  0 siblings, 0 replies; only message in thread
From: mame @ 2020-12-12  4:17 UTC (permalink / raw)
  To: ruby-dev

Issue #2323 has been updated by mame (Yusuke Endoh).

Status changed from Assigned to Closed

#13663 でほぼ同様のチケットが close されたのでこちらも閉じます。

----------------------------------------
Feature #2323: "Z".."Z".succが空
https://bugs.ruby-lang.org/issues/2323#change-89188

* Author: hasari (Hiro Asari)
* Status: Closed
* Priority: Normal
* Assignee: matz (Yukihiro Matsumoto)
----------------------------------------
=begin
 surfboard:~$ ruby1.9 -v; ruby1.9 -e 'p ("Z".."Z".succ); p ("Z".."Z".succ).to_a'
 ruby 1.9.2dev (2009-11-02 trunk 25625) [x86_64-darwin10.0.0]
 "Z".."AA"
 []
 
 "Z".succではなくてもうちょっと”離れた”ヤツをRangeの終わりとして指定すると"AA"はしっかりと入っています。
 
 surfboard:~$ ruby1.9 -e 'p ("Z".."ZA").include? "Z".succ'
 true
 
 でも半端な”離れ”方ではいけません。
 
 surfboard:~$ ruby1.9 -e 'p ("Z".."CA").include? "Z".succ'
 false
 
 to_aを介しても同様です。
 
 surfboard:~$ ruby1.9 -e 'p ("Z".."ZA").to_a.include? "Z".succ'
 true
 surfboard:~$ ruby1.9 -e 'p ("Z".."CA").to_a.include? "Z".succ'
 false
=end




-- 
https://bugs.ruby-lang.org/

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2020-12-12  4:18 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <redmine.issue-2323.20091102161937.826@ruby-lang.org>
2020-12-12  4:17 ` [ruby-dev:50976] [Ruby master Feature#2323] "Z".."Z".succが空 mame

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).