From: FreeKMan@... Date: 2019-07-24T06:41:31+00:00 Subject: [ruby-core:93898] [Ruby master Feature#16017] String and Array Slices Issue #16017 has been updated by D1mon (Dim F). I tried Python syntax and did not think it would be different. Nothing is needed. Thank. ---------------------------------------- Feature #16017: String and Array Slices https://bugs.ruby-lang.org/issues/16017#change-79944 * 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: