Message from @meratrix
Discord ID: 391751178242883584
so given:
int foo(int x, int y)
{
if (y <= 0)
{
return x;
}
if (x <= 0)
{
return y;
}
if (x >= y)
{
return x+foo(x - 3, y);
}
if (x < y)
{
return y+foo(x, y - 2);
}
}
^
above code is C++
foo(X,Y,Z) :-
(Y=0;Y<0),
Z is X, !.
foo(X,Y,Z) :-
(X<0;X=0),
Z is Y, !.
foo(X,Y,Z) :-
(X=Y;X>Y),
K is X-3,
foo(K,Y,S),
Z is S + X.
foo(X,Y,Z) :-
X
ME🔫
jesus
Also, why not a switch statement for C++?
This is HelloWorld
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++.
This is in BrainFuck
```cpp
int foo(int x, int y)
{
if (y <= 0)
return x;
if (x <= 0)
return y;
if (x >= y)
return x+foo(x - 3, y);
else
return y+foo(x, y - 2);
}```
@Legiondude cuz I was lazy
What's the tags to encapsulate code in Discord's formatting @DanielKO ?
\`\`\`cpp
code here
\`\`\`
```BrainFuck >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++. ```
```
cout<<"Prolog is Weird"<
Try "bf"
```bf >+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++. ```
nope
probably doesn't exist for BrainFuck
it is just a meme language
\`\`\`bf
code here, new line you faggot
\`\`\`
```bf
>+++++++++[<++++++++>-]<.>+++++++[<++++>-]<+.+++++++..+++.>>>++++++++[<++++>-]
<.>>>++++++++++[<+++++++++>-]<---.<<<<.+++.------.--------.>>+.>++++++++++.
```
shit
it does work
so what did you guys think of prolog?
cancer
exactly
It does its job, I don't think I'll ever use it.
```prolog
foo(X,Y,Z) :-
(Y=0;Y<0),
Z is X, !.
foo(X,Y,Z) :-
(X<0;X=0),
Z is Y, !.
foo(X,Y,Z) :-
(X=Y;X>Y),
K is X-3,
foo(K,Y,S),
Z is S + X.
foo(X,Y,Z) :-
X
So is it time to poke JDM for a CompSci channel?
#geeks
```scala
import scala.collection.mutable
object MyClass {
def main(args: Array[String]) {
val argsLength = args.length - 1
val m = mutable.LinkedHashMap[Int, String]()
for(i <- 0 to argsLength) {
m += (i -> args(i))
}
m.foreach((kv: (Int, String)) => println(kv._1 + ":\t" + kv._2))
}
}
```
This is the library Discord uses: https://highlightjs.org/static/demo/
cool
@JDM_WAAAT The votes have been cast! We need a #geeks channel
now you guys want some real cancer code?
Only a cuck would say that
heh
Maybe have a hobbies category and put stuff like <#385307110813990913> and #code in there
Fuck firearms, it's lame.