expression Questions
3
Solved
I think this question is somewhat related to Kotlin function declaration: equals sign before curly braces
In Scala, every statement is an expression (possibly with Unit type). If we surround multi...
Beastings asked 15/8, 2016 at 9:9
1
I wrote my own little Perl debugger that prints for each executed line, the current file name and the corresponding line number. How can I detect if the current Perl statement contains tainted data...
Leonhard asked 10/1, 2016 at 11:58
2
Solved
I can successfully replace simple parameter types in a lambda expression thanks to some answers on a previous question but I cannot figure out how to replace parameters from an incoming lambda to a...
Realist asked 21/7, 2016 at 8:43
3
I have a DateRange class that I'd like to apply to an IQueryable as a where predicate, automatically using the begin and end dates and automatically using an open or closed interval.
public class ...
Crystallography asked 21/7, 2016 at 15:8
1
I had programming interview which consisted of 3 interviewers, 45 min each.
While first two interviewers gave me 2-3 short coding questions (i.e reverse linked list, implement rand(7) using rand(5)...
Disrupt asked 26/5, 2013 at 17:53
1
Solved
Given that I was passing the undefined function:
void foo(char, short);
I learned how to obtain the type tuple of the arguments by calling decltype(m(foo)) with this function:
template <type...
Subdelirium asked 20/7, 2016 at 13:33
4
Solved
It is a good idea to use nameof over expressions for extracting property names?
//method with expression
protected void RaisePropertyChanged<T>(Expression<Func<T>> propertyExpres...
Epigenous asked 12/7, 2016 at 8:57
2
Solved
A function produces a result, can be used as argument of another function parameter. So, is a function call like:
f(1,2,3)
be considered as an "expression"?
Thanks.
Manipulate asked 4/7, 2016 at 8:48
1
Solved
The language standard says:
[ Note: Clause 5 defines the syntax, order of evaluation, and meaning
of expressions.58 An expression is a sequence of operators and
operands that specifies a compu...
Crisscross asked 4/7, 2016 at 2:23
4
Solved
How can I add an expression to watch in Xcode 4?
This should be very obvious, but it is not. It does not seem to be down any menu or available on a contextual click. It would be nice if I could h...
Tarlatan asked 12/4, 2011 at 8:37
3
Solved
I have the folowing attribute on a div: ng-show="state.name === 'index'". I've also tried ng-show='state.name === "index", but I keep getting the following error:
Syntax Error: Token '"index"' i...
Furthest asked 21/10, 2012 at 14:46
1
Solved
I am working with an array of doubles called indata (in the heap, allocated with malloc), and a local double called sum.
I wrote two different functions to compare values in indata, and obtained ...
Marhtamari asked 4/6, 2016 at 5:24
1
Solved
I was writing a basic program to find if the input number is prime or not. I have a checkPrime(num) function that checks for prime number and returns true if num is prime else returns false. Now in...
Domenicadomenico asked 1/6, 2016 at 15:20
1
I am using bc and scale for evaluating a expression however I want it to round up instead of round down. What is the simplest way to do this?
$ read exp
5+50*3/20 + (19*2)/7
$ echo "scale=3;...
Tearoom asked 24/5, 2016 at 3:35
1
I would like my axis label to read something like
(m²)
with the height of the parentheses a little larger to match the superscript 2, but the parentheses nonetheless inline.
However, I either ge...
Charactery asked 12/5, 2016 at 21:17
0
According to Wikipedia the shunting-yard algorithm is used to parse mathematical expressions. But is there any reason it could not be used with a mix of logical and arithmetic expressions, as well ...
Ferocious asked 27/4, 2016 at 15:44
2
Solved
I have the following expression:
public Expression<Func<T, bool>> UserAccessCheckExpression<T>(int userId) where T : class
{
return x => (IsAdmin || userId == CurrentUserId |...
Programme asked 20/4, 2016 at 7:3
2
Solved
For a remoting scenario, the result would be very good to receive as an array or list of Tuple objects (among benefits being strong typing).
Example: dynamically convert SELECT Name, Age FROM Tabl...
Rebuild asked 5/1, 2010 at 21:56
2
Solved
I'm in the process of writing a data layer for a part of our system which logs information about automated jobs that run every day - name of the job, how long it ran, what the result was, etc.
I'm...
Madrid asked 22/6, 2012 at 20:56
10
Solved
Is there a way in Java to get the result from this mathematical expression:
String code = "5+4*(7-15)";
In other hand what's the best way to parse an arithmetic expression?
Ezechiel asked 16/9, 2009 at 10:49
3
Solved
I've tried to solve the problem below for a coding challenge but could not finish it in 1 hour. I have an idea on how the algorithm works but I'm not quite sure how to best implement it. I have my ...
Eiffel asked 15/9, 2015 at 20:6
1
Solved
I need to be able to have the textbox within the table say " No. Of Tickets: " and then have the expression =Count(Fields!TicketID.Value) So that it is more user friendly because it wont just show ...
Thrive asked 23/3, 2016 at 9:34
5
Solved
While reading the example code provided by Texas Instruments for their SensorTag I came across the following snippet.
void SensorTagIO_processCharChangeEvt(uint8_t paramID) {
...
if (!!(ioValu...
Bahia asked 20/2, 2016 at 12:8
2
Solved
I have a some code in PowerShell and I need to use it in cmd.exe
I am using this command in cmd.exe
powershell -command "command"
But it gives me this error
At line:1 char:72
+ ... nt D:\15.tx...
Chihli asked 22/2, 2016 at 15:0
1
I have this regex:
const name_regex = /^[a-zA-Z]+$/;
I tested this with the following regex tool
link
Can you please tell me how to do to accept and space?
Accept eg: John Smith
Thanks...
Translate asked 19/2, 2016 at 7:31
© 2022 - 2024 — McMap. All rights reserved.