Group Abstract Group Abstract

Message Boards Message Boards

0
|
2.7K Views
|
3 Replies
|
4 Total Likes
View groups...
Share
Share this post:

Dispatch in v10

Posted 11 years ago
3 Replies

Thanks for the replies. Too bad I need to spend time update packages and programs...

Dispatch is now atomic in version 10.

You could define a function for converting a Dispatch object to rules like this:

If[$VersionNumber < 10,
 dispatchRules[d_Dispatch] := First[d],
 dispatchRules[d_Dispatch] := Normal[d]
]

Then use it in your packages.

POSTED BY: Szabolcs Horvát

In this particular case the Normal function might be useful. This is for MMA10

rules = {a -> b, b -> c, c -> a, d -> e, e -> d}

Normal[Dispatch[rules]]

This is the output:

enter image description here

A similar change has happened to many functions, for example NDSolve.

Cheers,

Marco

POSTED BY: Marco Thiel
Reply to this discussion
Community posts can be styled and formatted using the Markdown syntax.
Reply Preview
Attachments
Remove
or Discard