Hmmmh... Z3 has bitvector types which don't have specific type semantics for signedness, only per-operation unsigned/signed semantics. How to represent these semantics sensibly in Mathematica?
My current idea is something like Assuming, a block which would modify interpretation of enclosed operations as wanted...
Considering we have a list of rules:
{ First-> {a-> "aaaa", b-> "bbbb"}, Second-> {c-> "cccc", d-> "dddd", e-> Missing["NotAvailable"], f-> Missing["NotAvailable"] }}
How can I bring this to be:
{ First-> {a-> "aaaa", b-> "bbbb"}, Second-> {c-> "cccc", d-> "dddd" }}
Thanks.
What is the best way to get the maximum value of an association and preserve the key? Max[ass] gives just the value. Is MaximalBy[ass, Value] the best way to go? I see the problems with duplicate maxima.
@MichaelE2 I haven't used Dataset much because it seemed cumbersome and buggy when v10 came out, but now I'm trying to use it again. Is this normal? --> Dataset[Range[10]][Select[# > 4 &]] gives {5,6,7,8,9,10}, it's what I expect.
Dataset[Range[10]][Select[# > 4 &] /* Length] gives 6, what I expect.
An ordinary `Trace` shows the error. Not sure but seems like a bug. The offending command is ``(Dataset`Query`PackagePrivate`comp[#2][#1] &)[Identity, Length@*Select[#1 > 4 &]]`` and you can inspect the function with ``PrintDefinitions[Dataset`Query`PackagePrivate`comp]``....
The documentation mentions why /* is complicated: "When one or more descending operators are composed with one or more ascending operators (e.g. desc/*asc), the descending part will be applied, then subsequent operators will be applied to deeper levels, and lastly, the ascending part will be applied to the result at that level."
@Szabolcs The documentation gives the appearance of rather complicated distinctions and I guess I have no reason for delving deeper at this point. A single reading is insufficient....You might not care but the bug can be fixed by changing Dataset`Query`PackagePrivate`comp[#2] [#1] to Dataset`Query`PackagePrivate`comp[#2] /* #1 in Dataset`Query`PackagePrivate`foldops` :
I seem to be getting the impression that the Wolfram developers were rushed quite a bit to release version 10. It's not like writing guaranteed-correct software is as easy as writing a tweet.
Cryptography has existed for thousands of years, but before serious computers came around, only specific kinds of messages were worth encrypting. Now that computers routinely manage a huge amount of communication, there is little downside to invisibly applying cryptography to almost everything, from verifying where information comes from to exchanging information securely. Because of cryptograp…
Hi , if someone has Mathematica on a mac or a Linux system, could you please evaluate this code: ButtonLabelStyle[x_] := Style[x, 10] Button["//ContractBasis" // ButtonLabelStyle, Null, ImageSize -> 85]
It simply displays a button. My question is : does the label of the button look good or is hyphenated? On Windows it is good, but i fear that on other platforms it might not be so.
@Pickett Thank you @Pickett . This is very annoying. Did you try it on a Mac or Linux? Probably the default font is larger on a Mac than in windows. Probably i should explicitly mention a (more compact) font, but which one?