Post History
Ruby, 43 bytes ->n{(1..n).map{|i|" "*(n-i)+?/*i+?\\*i}*$/} ->n{ } # lambda (1..n).map{|i| } # map over 1 to n ...
Answer
#1: Initial revision
# [Ruby], 43 bytes <!-- language-all: lang-ruby --> ->n{(1..n).map{|i|" "*(n-i)+?/*i+?\\*i}*$/} ->n{ } # lambda (1..n).map{|i| } # map over 1 to n " "*(n-i)+?/*i+?\\*i # spaces plus / plus \ *$/ # join with newline [Try it online!][TIO-kjjmyy0h] The special global variable `$/` is initialized to newline by default, which is shorter than `?\n` or `"\n"`. From [globals.rdoc](https://ruby-doc.org/core-3.0.0/doc/globals_rdoc.html): >`$/` > >The input record separator, newline by default. Aliased to `$-0`. [Ruby]: https://www.ruby-lang.org/ [TIO-kjjmyy0h]: https://tio.run/##KypNqvyfVpqnYPtf1y6vWsNQTy9PUy83saC6JrNGSUFJSyNPN1NT215fK1PbPiZGK7NWS0W/9n9BUWZeiQJQn55GempJsYamXkl@fKbmf3MA "Ruby – Try It Online"