SciRuby/daru

Regular expression matching for vectors

Open

#174 ouverte le 26 juin 2016

Voir sur GitHub
 (2 commentaires) (0 réactions) (0 assignés)Ruby (140 forks)github user discovery
help wanted

Métriques du dépôt

Stars
 (1 060 stars)
Métriques de merge PR
 (Métriques PR en attente)

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

Guide contributeur