Group Abstract Group Abstract

Message Boards Message Boards

0
|
7.3K Views
|
5 Replies
|
1 Total Like
View groups...
Share
Share this post:

Why are empty datasets not the same?

Posted 6 years ago
POSTED BY: Andrew
5 Replies
Posted 6 years ago

Hi Andrew,

Datasets have additional metadata and SameQ tests if the expressions are identical. Take a look at the results of

FullForm /@ {l1, l2, l3}

and

FullForm /@ {d1, d2, d3}

You have to compare the Normal

SameQ @@ Normal /@ {d1, d2, d3}
POSTED BY: Rohit Namjoshi
Posted 6 years ago

Thank you! Applying Normal before doing a test fixed the bug in my program.

POSTED BY: Andrew
Posted 6 years ago
POSTED BY: Andrew
Posted 6 years ago
POSTED BY: J. M.
POSTED BY: Seth Chandler
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard