diff options
Diffstat (limited to 'ruby/types.rb')
| -rw-r--r-- | ruby/types.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/ruby/types.rb b/ruby/types.rb index 16d8d1e..6f22041 100644 --- a/ruby/types.rb +++ b/ruby/types.rb @@ -6,6 +6,10 @@ end class Vector < Array end +def sequential?(obj) + return obj.is_a?(List) || obj.is_a?(Vector) +end + class Function < Proc attr_accessor :ast attr_accessor :env |
