The first thing....

  • The FTB Forum is now read-only, and is here as an archive. To participate in our community discussions, please join our Discord! https://ftb.team/discord

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
So what more fake food did humans create? did we create fake eggs? (It really wouldn't surprise me) and don't say chocolate eggs as those are not eggs
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
Well, in Harvestcraft, you can use tofu in place of eggs...

IRL, though, I don't know. Probably.

I vaguely remember using a mixture of baking powder and a couple other things in a recipe in place of eggs (or something, it's been several years) at some point, though...
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
I just love the fact that we are now talking about fake food for no reason at all.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
all the borken rhyme and all the bass.

yes I know I have a typo, yes I blame my keyboard
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
I hink of want to write a Clojure function that replaces a random character in a string with a random letter now, but meh.
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
if you want to create the same thing I suffer from with this keyboard they need to switch places like has ->ahs
or has-> hsa but has->sah is wrong as they are not next to each other

creating this function is probably not that difficult
 

lenscas

Over-Achiever
Jul 31, 2013
2,015
1,801
248
Is there not a way to copy the string to an array or loop over all the characters in a string? If you can do that your golden
 

Someone Else 37

Forum Addict
Feb 10, 2013
1,876
1,440
168
If Java strings were mutable like Java arrays, I could just do
int i = r.nextInt(string.length - 1);
int temp = string;
string = string[i+1];
string[i+1] = temp;
and thereby swap the two characters directly.

In Haskell, I could do
newString string = (init front) ++ [head back] ++ [last front] ++ (tail back)
where (front, back) = span someRandomNumber string​
which splits the string in half (I don't remember how to get random numbers off the top of my head), then takes everything but the last character of the first half, then the first character of the other half, then the last character of the first half, then the rest of the second half, and concatenates them all together.

Edit: Removed random italics.
 
Last edited: