This documentation is automatically generated by online-judge-tools/verification-helper

:warning: src/tuple/get.cr

Required by

Code

struct Tuple
  macro method_missing(call)
    {% str = call.stringify %}
    {% if str =~ /_\d+/ %}
      self[{{ str[1...str.size].id }}]
    {% else %}
      {% raise call %}
    {% end %}
  end
end
struct Tuple
  macro method_missing(call)
    {% str = call.stringify %}
    {% if str =~ /_\d+/ %}
      self[{{ str[1...str.size].id }}]
    {% else %}
      {% raise call %}
    {% end %}
  end
end
Back to top page