look_ahead_iterator:具有前瞻性的 Ruby 迭代器

时间:2021-05-30 15:13:42
【文件属性】:
文件名称:look_ahead_iterator:具有前瞻性的 Ruby 迭代器
文件大小:7KB
文件格式:ZIP
更新时间:2021-05-30 15:13:42
Ruby 前瞻迭代器 具有前瞻操作的 Ruby 迭代器。 安装 将此行添加到应用程序的 Gemfile 中: gem 'look_ahead_iterator' 然后执行: $ bundle 或者自己安装: $ gem install look_ahead_iterator 用法 require 'look_ahead_iterator' i = LookAheadIterator . new ( ( 1 .. 4 ) , stop : true ) loop do puts "Current_value: #{ i . next . inspect } " puts " (next value: #{ i . look_ahead . inspect } )" end 贡献 分叉( ) 创建功能分支( git checkout -b my-new-feature )
【文件预览】:
look_ahead_iterator-master
----LICENSE.txt(1KB)
----lib()
--------look_ahead_iterator.rb(3KB)
--------look_ahead_iterator()
----Gemfile(104B)
----look_ahead_iterator.gemspec(1003B)
----Rakefile(532B)
----.travis.yml(89B)
----test()
--------minitest_helper.rb(117B)
--------test_look_ahead_iterator.rb(7KB)
----README.md(758B)
----.gitignore(761B)

网友评论