Elixir, IO.inspect to not trim a long list -
Elixir, IO.inspect to not trim a long list -
when do:
io.inspect [:right, :top, :left, ...very_long_list] i first items (it's list of moves solve 15-puzzle) this:
[:right, :top, :left, :bot, :bot, :left, :top, :top, :right, :right, :bot, :left, :bot, :left, :top, :right, :bot, :right, :top, :top, :left, :bot, :left, :top, :right, :right, :bot, :bot, :left, :top, :top, :left, :bot, :right, :top, :right, :bot, :left, :left, :top, :right, :bot, :right, :top, :left, :left, :bot, ...] # => see '...' instead finish list how can tell io.inspect not trim list ? there alternative or ?
you can pass limit: :infinity print elements:
io.inspect(list, limit: :infinity) it not appear in documentation inspect.opts, can found in source code.
elixir inspect
Comments
Post a Comment