Skip to main content

All Questions

Tagged with
-1 votes
2 answers
156 views

Is Observable's "viewof" really an operator? [closed]

I'm confused by Observable's use of the word "operator" in their documentation, and wondering whether they have misused it, or I'm simply not understanding. Observable has a special viewof ...
Steve Bennett's user avatar
0 votes
0 answers
80 views

What is the <:0:> operator in c++? [duplicate]

I recently found a strange operator in the c++ codebase of my company. There it is: // make the output visible on the console std::cout.rdbuf()<:0:>.pubsync(); What does the "<:...
DeadMaX's user avatar
  • 11
0 votes
2 answers
93 views

Define ternary inline operator in F#

I want to define an infix operator |>> which works like this: i |>> f1 f2 is the same as (f1 i, f2 i) i.e. it will apply an argument onto two functions and concatenate the results. Best ...
ChomskyEnjoyer's user avatar
0 votes
2 answers
44 views

Correct operator usage

I'm using IPUMS CPS data and created a binary variable for disability from the six different variables within IPUMS for disability (https://cps.ipums.org/cps-action/variables/group/core_dis) bias <-...
Hlb09d's user avatar
  • 5
0 votes
1 answer
66 views

What is the name of R Special Backtick and Parentheses Syntax?

I have recently encountered the following R syntax: (`::`("ggplot","aes"))() or (`$`(mylist,"column")) I understand what it does, but I struggle to find any ...
Pycruncher's user avatar
0 votes
1 answer
52 views

MySQL: Is there an operator to identify unique values?

I want to update the column 'status' in a dataframe 'Enrollments' that references another 'visitID' column, but I want the values within 'status' to be as follows: When there are 2 or more Id's that ...
boleroemoji's user avatar
1 vote
2 answers
91 views

Understanding how the "is" operator works int Python for result from function

For example we have this code. x = 1 y = 1 print(x is y) # TRUE print(id(x), id(y)) y = pow(10, 30, 10**30-1) # 1 print(type(y)) print(x, y, x is y) # FALSE It`s return: True 140516304938720 ...
Ли Шеньшунь's user avatar
0 votes
1 answer
49 views

Why am I getting the same value of x (-2147483648) irrespective of the different values of a, b and c I input?

#include <stdio.h> #include <math.h> int main() { // Write C code here int a; int b; int c; printf("Input the values of a,b and c:\n"); scanf("%...
Umar B Shehu's user avatar
-1 votes
1 answer
102 views

What's the benefit of 3-ways comparison operator (<=>) in C++20?

I know the syntax of it. I just wondering what's the benefit or whether does it make sens. Without it, we must code like this: void func1(int x, int y) { if( x > y ) doSomeThing(); ...
Leon's user avatar
  • 1,997
0 votes
1 answer
46 views

Can I assign an ALIAS to a help option?

In R, the I believe the core features such as "+" or "?" are called "operators" (they are I believe in most programming languages: an operator as a symbol to perform a ...
mshaffer's user avatar
  • 973
1 vote
1 answer
210 views

is it possible to assign multiple values after initalization within curly braces?

When creating an instance, you can specify all the member values within curly braces. Is there a syntax that allows you to specify multiple value changes using the curly braces after it's already ...
John's user avatar
  • 6,169
0 votes
2 answers
216 views

How does spread operator work in Flutter?

I am following a Flutter tutorial that I can't understand this part: class CartItem { final String id; final String title; final int quantity; final double price; CartItem({ required ...
GoodMan's user avatar
  • 600
0 votes
1 answer
468 views

Is "foo === bar" equal to "if (foo === bar) {return true}"? [duplicate]

I know this question falls in the realm of "basics", however I'd like to understand the inner workings of the language. My question is: Do operators 'return' the expression's value by ...
Abdul-Qader Haddad's user avatar
-1 votes
1 answer
2k views

What does "null!" default value of property mean?

I have seen this below code in somewhere. There is a TodoItems property in the TodoContext class and it has a default value of "null!". I know this is a default value set for intended ...
camadan's user avatar
  • 123
1 vote
3 answers
728 views

Ternary operator, shortcut to return checked condition if true?

I am looking to see if there is an even-shorter notation for an already relatively compact notation. It seems like some piece of syntax that would exist for a fairly common pattern in code. Here, the ...
peytonurquhart's user avatar

15 30 50 per page
1
2 3 4 5
14