Skip to content

Enumerable#chunk without passing a block is supported since Ruby 2.4 #1518

@deepj

Description

@deepj

MRI (2.5.3)

[1,2,3,4,5].chunk
# => #<Enumerator: [1, 2, 3, 4, 5]:chunk>

TruffleRuby (1.0.0-rc10)

Error:

[1,2,3,4,5].chunk
ArgumentError: no block given
	from (irb):16:in `chunk'
	from (irb):16
	from ~/.rubies/truffleruby-1.0.0-rc10/bin/irb:29:in `<main>'

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions