SciRuby/daru

Regular expression matching for vectors

Open

#174 opened on 2016年6月26日

GitHub で見る
 (2 comments) (0 reactions) (0 assignees)Ruby (140 forks)github user discovery
help wanted

Repository metrics

Stars
 (1,060 stars)
PR merge metrics
 (PR metrics pending)

説明

I feel like we should have a function to match regular expression like we have eq, lt, etc.

It would work as follow:

> dv = Daru::Vector.new ['abc', 'aaa', 'xet', 'ccc']
> dv.where(dv.match /a/)
#<Daru::Vector:17216960 @name = nil @metadata = {} @size = 2 >
    nil
  0 abc
  1 aaa

コントリビューターガイド