tbpgr_utils 0.0.26 → 0.0.27

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/README.md CHANGED
@@ -29,6 +29,7 @@ Or install it yourself as:
29
29
  |[TbpgrUtils Array#together_delete](#arraytogether_delete) |together version of Array#delete. together_delete has alias :tdelete |
30
30
  |[TbpgrUtils Array#together_delete_at](#arraytogether_delete_at) |together version of Array#delete_at. together_delete_at has alias :tdelete_at |
31
31
  |[TbpgrUtils Array#together_delete_if](#arraytogether_delete_if) |together version of Array#delete_if. together_delete_if has alias :tdelete_if |
32
+ |[TbpgrUtils Array#together_empty?](#arraytogether_empty) |together version of Array#empty?. together_empty? has alias :tempty? |
32
33
  |[TbpgrUtils Array#together_map](#arraytogether_mapor-tmap-together_collect-tcollect) |together version of Enumerable#map. together_map has aliases [:tmap, :together_collect, :tcollect] |
33
34
  |[TbpgrUtils Array#together_map!](#arraytogether_map-1or-tmap-1-together_collect-1-tcollect-1) |together version of Enumerable#map!. together_map! has aliases [:tmap!, :together_collect!, :tcollect!] |
34
35
  |[TbpgrUtils Array#together_reduce](#arraytogether_reduceor-treduce-together_inject-tinject) |together version of Enumerable#reduce. together_reduce has aliases [:treduce, :together_inject, :tinject] |
@@ -234,6 +235,27 @@ print ret # => nil
234
235
 
235
236
  [back to list](#list)
236
237
 
238
+ ### Array#together_empty?
239
+ empty case
240
+ ~~~ruby
241
+ require 'tbpgr_utils'
242
+
243
+ lists = [[], []]
244
+ ret = lists.together_empty?
245
+ print ret # => true
246
+ ~~~
247
+
248
+ not empty case
249
+ ~~~ruby
250
+ require 'tbpgr_utils'
251
+
252
+ lists = [[1], []]
253
+ ret = lists.together_empty?
254
+ print ret # => false
255
+ ~~~
256
+
257
+ [back to list](#list)
258
+
237
259
  ### Array#together_map(or tmap, together_collect, tcollect)
238
260
  ~~~ruby
239
261
  require 'tbpgr_utils'
@@ -958,6 +980,7 @@ if you are Sublime Text2 user, you can use snippet for TbpgrUtils.
958
980
  https://github.com/tbpgr/tbpgr_utils_snippets
959
981
 
960
982
  ## History
983
+ * version 0.0.27 : add Array#together_empty?(alias tempty?)
961
984
  * version 0.0.26 : add Array#together_delete_if(alias tdelete_if)
962
985
  * version 0.0.25 : add Array#together_delete_at(alias tdelete_at)
963
986
  * version 0.0.24 : add Array#together_delete(alias tdelete)