Todd Sundsted

@alexanderadam works!

macro ✂️(str, n)
  {{str}}.size > {{n}} ? {{str}}[0, {{n}} - 1] + "…" : {{str}}
end
 puts ✂️ "hello, world!", 3  # => "he…"

https://play.crystal-lang.org/#/r/iecr

#crystallang