expression Questions
6
Solved
Hi I was wondering if there is any known way to get rid of unnecessary parentheses in mathematical formula. The reason I am asking this question is that I have to minimize such formula length
if((...
Zebe asked 30/6, 2009 at 12:14
3
Solved
I'm looking for a formula interpreter that I can use in a C# application. It needs to be able to interpret a string like this:
max(1+2, 4) * x
I found Writing a fast formula interpreter (c...
Mcneal asked 29/3, 2011 at 21:59
3
Solved
I have a block of code where a piece of the lambda expression is used again and again. How can store this logic so that i can reuse this expression piece?
Eg: lets take the example of the code giv...
Duchamp asked 22/3, 2011 at 19:55
1
Solved
I want to combine two LambdaExpressions without compiling them.
This is what it looks like if I do compile them:
public Expression<Func<TContainer,bool>> CreatePredicate<TContaine...
Propagate asked 19/3, 2011 at 12:7
3
Solved
the problem in short
we have a lambda expression used in the Where clause, which is not returning the "expected" result.
quick summary
in the analysisObjectRepository object, there are certain o...
Cumulostratus asked 15/3, 2011 at 17:40
1
Solved
I am wanting to create the parser, and expression syntax in peg.js that would allow me to do these things
basically I want to pass in a mask and have a number output.
the mask has these abilities...
Pew asked 9/3, 2011 at 4:20
1
Solved
I'm trying to enhance my repository so it is the one responsible for ordering. I've applied the answer from this question and as far as the repository is concerned, I'm pretty sure it done.
The pr...
Inadmissible asked 18/2, 2011 at 23:13
5
Solved
What is the best way to implement a python program that will take a string and will output its result according to operator precedence (for example: "4+3*5" will output 19). I've googled for ways t...
Lavinalavine asked 9/10, 2009 at 18:35
3
Solved
Does anyone know of a library to handle events and recurring events likes the temporal expression libraries that exist for ruby like Runt (http://runt.rubyforge.org/) or TExp (http://texp.rub...
Argyle asked 1/9, 2010 at 22:47
3
Solved
I am considering using a Linq Expression as a key in a dictionary. However, I am concerned that I will get strange results, because I don't know how Equality is determined by Linq expressions.
Do...
Malony asked 17/2, 2011 at 18:14
2
Solved
What is the meaning of /i at the tail of this regex?
var time = /^([1-9]|1[0-9]):([0-5][0-9])(\s[a|p]m)$/i;
Tonguing asked 11/2, 2011 at 9:23
4
Solved
I've been trying to learn more about using Lamba expression trees and so I created a simple example. Here is the code, this works in LINQPad if pasted in as a C# program.
void Main()
{
IEnumerabl...
Dragone asked 7/3, 2010 at 20:41
6
Solved
Strings are reference types, but they are immutable. This allows for them to be interned by the compiler; everywhere the same string literal appears, the same object may be referenced.
Delegates a...
Splendent asked 26/1, 2011 at 17:33
1
Solved
I need a way to recreate dynamically generated reports at some point in the future. Long story short, I need to store a specific linq query (different for each report) into database and then execut...
Varicocele asked 25/1, 2011 at 13:20
3
Does there exist a equation expander for Haskell?
Something like foldr.com: 1+(1+(1+(1+(…))))=∞
I am new to Haskell I am having trouble understanding why certain equations are more preferable tha...
Hartwig asked 10/12, 2010 at 0:52
4
Solved
I have a method that takes Expression type parameter, in my method i want to get values of this expression but cant find out hot to do that.
private User GetUser(Expression<Func<User, bool&g...
Manzoni asked 23/12, 2010 at 14:31
2
Solved
I am trying to create an extension "WhereNot"
So I can use:
Dim x = "Hello world "
Dim y = x.Split.WhereNot(AddressOf String.IsNullOrEmpty)
Note that my aim here is to learn linq expressions; n...
Gladine asked 15/2, 2010 at 4:33
4
Solved
I'm very low experienced with Expressions in .NET, that's why I rather ask you guys.
How should I - see comment below:
using P = Myclass;
..
System.Linq.Expressions.Expression<Func<P, bool&g...
Calculated asked 13/12, 2010 at 14:44
3
Solved
As far SpEL is used in Spring 3.0,
I would like to ask, is it possible to do following(in bean definition .xml):
<c:choose>
<c:when test="#{prop=='a'}">
<bean class="BeanA"/>...
Louvar asked 22/11, 2010 at 14:45
2
Solved
My expression aren't great and I would like to improve on them so I am wondering if someone could explain for me if it possible to create a property in a class that can be given a value during inst...
Akim asked 22/11, 2010 at 10:56
2
Solved
I need to get two fields from a database table (retrieved using linq-to-sql), one field is a datetime (and is a fixed field) and the other is always a decimal, but the field can be different.
The ...
Safir asked 18/11, 2010 at 12:45
2
Solved
I'm looking for a way of parsing a conditional expression to a string.
The best example I can think of is LINQ-to-SQL. It uses ExpressionVisitors to format "Where" clauses. Example:
from ...
Compaction asked 17/11, 2010 at 1:57
5
Solved
I have often used the following construct in Javascript:
var foo = other_var || "default_value";
In Javascript, if the left side is falsy, then the value on the right side is assigned.
It is ve...
Axiology asked 15/11, 2010 at 17:56
2
I'm trying to find out what the algorithm would be by being given two languages L1 and L2 to determine if they are equivalent (L1 = L2).
It's surprisingly difficult to come up with one as I've fou...
Tripura asked 14/10, 2010 at 7:56
1
Solved
In our application we have several (actuall many, about 30) web services. Each web service resides in its own WAR file and has its own Spring context that is initialised when application starts.
...
Asbestos asked 4/11, 2010 at 13:29
© 2022 - 2024 — McMap. All rights reserved.