Blrp
  • Member for 6 years, 11 months
  • Last seen this week
  • Sweden
SequenceSplit around empty sequences is inconsistent
Accepted answer
4 votes

Well, at least there's a workaround. SequenceSplit[list, {s : {(X | Y | Z)...} :> s, {} -> {}}] Edit: answer from Wolfram Technical Support - "It does appear that SequenceSplit is not ...

View answer
Number of values stored in a function
Accepted answer
1 votes

Number of lines in definition: Length@DownValues@f, as suggested by b3m2a1 Number of values stored: delete expressions containing the head Pattern from DownValues. f[0] = 1; f[n_] := f[n] = 2 f[n - 1];...

View answer
ClearAll required twice on a symbol with SyntaxInformation
Accepted answer
0 votes

It's a bug. From Wolfram Technical Support: "I have reproduced the issue and have reported it to our developers." Workaround, from the comments by Lukas Lang: SyntaxInformation[f]=.; ...

View answer