SciRuby/daru

Regular expression matching for vectors

Open

#174 opened on Jun 26, 2016

View on 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)

Description

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

Contributor guide