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

Popular posts from this blog

java - How to set log4j.defaultInitOverride property to false in jboss server 6 -

c - GStreamer 1.0 1.4.5 RTSP Example Server sends 503 Service unavailable -

Using ajax with sonata admin list view pagination -