5
$\begingroup$

Short seems not to have an effect on the display of the following list of entities, while it works fine on a list of strings. Why is this?

enter image description here

Here's the copyable code:

EntityList[EntityClass["PeriodicTiling", All]] // Short

EntityValue[EntityClass["PeriodicTiling", All], "Name"] // Short
$\endgroup$

1 Answer 1

5
$\begingroup$

Short takes an optional second argument specifying how many "lines" to show. If you set this argument to a smaller value than the default (which I think is 1), you will get a shorter output:

EntityList[EntityClass["PeriodicTiling",All]] //Short[#,.2]&

enter image description here

I agree that the Short behavior for entities is unexpected.

$\endgroup$
1
  • $\begingroup$ Perhaps Short thinks that entities take up less horizontal space than they really do? $\endgroup$
    – Szabolcs
    Apr 27, 2018 at 16:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.