The Crystal programming language | http://crystal-lang.org | Fund Crystal's development: http://is.gd/X7PRtI | Docs: http://crystal-lang.org/docs/ | API: http://crystal-lang.org/api/
` or `\
or <code>`</code> correctly causing a cascading effect https://github.com/postmodern/chars.rb#features if i work around said issies, then i break commonmark or ruby's kramdown (which is pretty much bullet proof)
I've run into an issue where Crystal's Array#fill doesnt work the same as Ruby's (it doesnt allocate additional space, but throws an IndexError), but not sure if this is intentional.
a=[10]
a.fill(9,1,2)
Unhandled exception: Index out of bounds (IndexError)
Ruby returns [10,9,9]
a=[10]
a[1] = 0 # IndexError
a[1..1] = 0 # => [10, 0]
Good Evening form LDN :)
I try to do that but I’ve
20 | {% methods = method_listing(descriptions) %}
^-------------
Error: undefined macro method: 'method_listing'
This is the code
macro method_listing(descriptions)
%methods = [] of String
{% for description in descriptions %}
{% for key in description["methods"] %}
%methods << %key
{% end %}
{% end %}
%methods.uniq!
end
macro method_switch(descriptions)
{% methods = method_listing(descriptions) %}
end
Do u have some Idea ???