Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last month.
Improve this question
It would be fine for me if the code below returned true.
Since it has not, what are the best uses for this feature? What am I missing?
a := 10.52i
b := 10i
fmt.Println(a == b)
//false
Based on #Tashi, #Arkku and #axiac's comments, I realized that I am missing Math knowledge to understand this feature.
Related
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 7 days ago.
Improve this question
As i know, pure functions return the value that you insert in. However, log do also the same thing as for example finding sin(x). Why log is considered impure
Read haha some articles
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed last year.
Improve this question
If multiple goroutines access one uint64, the read will never get some other value than the ones that are written to that uint64.
Is this correct?
Is this correct?
No, this is plain and totally wrong in each and every case.
You must not write code with data races. This "must not" is not negotiable.
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 11 months ago.
Improve this question
How to do 50% of 120 in scala code..need proper syntax ,& runnable code for same.
Eg :
int k = (int)(120*(50.0f/100.0f));
This is in java need scala code for same.
The answer would be:
(120*(50.0f/100.0f)).toInt
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 2 years ago.
Improve this question
helllo
iam new to prolog and iam trying to make a function returns a specific elements index
for example
indexof (4,[3,4,5],X)
X is 1
any help is really appreciated
Use nth0/3
?- nth0(X,[3,4,5],4).
X = 1 ;
false.
If you go to the documentation page and click on it will take you to the Prolog source code that implements nth0/3. (link)
Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 8 years ago.
Improve this question
I have two NFA's.
I need to determine whether both recognize the same language
I would be much obliged if anyone could be so kind enough to explain how to do this.
You can get a canonical representation of an NFA by computing its equivalent minimal DFA.
If two NFA's have the same canonical representation, they accept the same language.