Created
January 25, 2022 16:36
-
-
Save enebo/6484b07f9d01dcd22fc4ba8f6e5d3e59 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
a = case [0, 1, 2, 3, 4] | |
in [*pre, 2, *post] | |
[pre, post] | |
else | |
false | |
end | |
p a |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
system ~/work/jruby master * 3660% jruby --dev ../snippets/pattern2.rb | |
../snippets/pattern2.rb:2: warning: Find pattern is experimental, and the behavior may change in future versions of Ruby! | |
[[0, 1], [3, 4]] | |
system ~/work/jruby master * 3661% mri31 ../snippets/pattern2.rb | |
../snippets/pattern2.rb:2: warning: Find pattern is experimental, and the behavior may change in future versions of Ruby! | |
[[0, 1], [3, 4]] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Fixed with jruby/jruby@450129d