From: shyouhei@... Date: 2019-07-24T01:35:23+00:00 Subject: [ruby-core:93897] [Ruby master Feature#16017] String and Array Slices Issue #16017 has been updated by shyouhei (Shyouhei Urabe). Status changed from Open to Feedback As @zverok mentioned there are String / Array slicing methods. Not a 1-to-1 translation of Python though. Is it enough for you? If not, tell us in detail what you want. ---------------------------------------- Feature #16017: String and Array Slices https://bugs.ruby-lang.org/issues/16017#change-79943 * Author: D1mon (Dim F) * Status: Feedback * Priority: Normal * Assignee: * Target version: ---------------------------------------- Recently began to study Ruby and lacks some things from the python. I wish they were added to Ruby. ``` python "hello, world!"[3:9:2] # 'l,w' "hello, world!"[3:9] # 'lo, wo' [1,2,3,4,5][1:3] # [2, 3] [1,2,3,4,5][1:5:2] # [2, 4] ``` -- https://bugs.ruby-lang.org/ Unsubscribe: