Reputation
26,378
Next tag badge:
211/100 score
19/20 answers
Badges
2 57 121
Newest
 Nice Answer
Impact
~129k people reached

Jul
3
comment Dataset vs an association of associations
@gwr That might be better... or perhaps it is better to operate upon the rich structure directly, without wrapping it within Dataset first. This would allow the use of unrestricted operators. Then, if needs be, the final result could be converted to an interchange-friendly (dataset-friendly) format as the last step. Perhaps future releases might perform such conversions as needed automatically?
Jul
2
comment Using .NET 4.0 from NETLink
@RunnyKine Despite appearances to the contrary, there is a good chance that you are getting access to the latest 4.x version. See the new 4.5.x section that I have added at the bottom of the response.
Jun
22
comment Association of Associations : how to permute level 1 and level 2 keys?
@andre Alas, the general form of Transpose does not presently work on associations -- whether specified directly or after being interpreted by Query.
Jun
21
comment Association of Associations : how to permute level 1 and level 2 keys?
@m_goldberg Never thought of DeleteMissing for the DeleteCases... updated and thanks.
Jun
19
comment Dynamic does not update when wrapped in DynamicModule
I suspect that it has something to do with the asynchronous nature of the callback -- somehow Dynamic@choices is not tracking that kind of change. As a quick and dirty work-around, try Dynamic[choices, UpdateInterval->0] instead.
Jun
17
comment Lookup with default broken in Dataset
@alancalvitti I'd be interested to know about a case where the first solution fails for a non-dataset object since that would be an entirely different class of problem. If the details are lengthy, it might be best to discuss it in chat rather than the comments here.
Jun
12
comment Memoization with pure functions?
@alancalvitti I discuss the jargon "pure function" in somewhat more detail in (64624). I argue there that the Mathematica jargon "pure function" means nothing more than "anonymous function" and makes no judgment about side effects (observable or otherwise).
Jun
12
comment Memoization with pure functions?
@Leonid Yes, I like that change. Thanks.
Jun
12
comment Memoization with pure functions?
+1 I'd just like to doubly emphasize the point you made in the second paragraph: the Mathematica jargon "pure function" is not the same thing as the contemporary notion of "pure function" -- despite the coincidental use of the same words.
Jun
6
comment How to programmatically ask if Mathematica is running as an Administrator
+1 This is a nice direct method. Funny story: I once ran into a case where a very locked-down corporate virus scanner unceremoniously terminated my program when it tried to use a similar technique.
Jun
6
comment Unicode beyond Basic Multilingual Plane
@Mr.Wizard I added a CW response that points to some of the related questions. The present question is more general than (215), so I am unsure as to whether it should be considered a duplicate.
Apr
20
comment What are the use cases for different scoping constructs?
@episanty The brackets are not strictly necessary but, following common convention, their presence gives the reader a clue that f is a potentially non-determinstic computation rather than a simple value.
Apr
18
comment DateObject for current date skips a day when crossing the date line with TimeZone
I get similar results for V10.1.0 Win7x64. At time of writing, DateObject[] returns Fri 17 Apr 2015 23:09:51 GMT-6 but DateObject[TimeZone->0] returns Sun 19 Apr 2015 05:09:51 GMT (the wrong day). By contrast, DateList[TimeZone->0] returns {2015, 4, 18, 5, 9, 51.2342} with the correct day.
Apr
16
comment Is Sow/Reap compatible with Composition?
I've only just now realized that this behaviour in Composition is discussed at length in (54762).
Apr
13
comment How to Fold over lazy lists and over tasks, just as with Lists?
Rumor has it that we might see official support for lazy lists soon. Also related: (838).
Mar
24
comment Why can I not replace a Dataset using a rule?
@Szabolcs Good catch. Fixed.
Mar
18
comment Time Zone Conversion
I enjoy your clever titles, but might I suggest that you include some indication of the subject matter, perhaps something like Time Zone Conversion: A Theory of Non-Relativity?
Mar
4
comment Fill Dataset value with result of queries on other Datasets
@alancalvitti I am using 10.0.2. In my first alternative I get an invalid result (with Missing elements) if I use KeySort. The query plans are different, reflecting the fact that KeySort is ascending and KeySortBy is descending. In my second alternative, it does not matter whether the operator is ascending or descending, so I just use the shorter-named ascending KeySort.
Feb
24
comment Can someone explain this snippet: (#[#] &)[#[#][#] &]
@MartinJohnHadley I added the phrase "infix operator for function definition", along with a link to the documentation page.
Feb
19
comment Change Values in Dataset under Condition
The workaround should only take effect if there is an explicit reference to noTypes. Do you have a counterexample? In any event, ClearAll[noTypes] will remove the definition. Also, restarting your session will clear it unless you have added to your init.m.