Show newer

it’s still raining. how the fuck am i supposed to go on a long walk with my xxs sylveon :blobmeow_weary:

alternatively just use a global size variable; we can abuse statefulness fur the funny

Show thread

javascript 

class Monorail {
#value;
#size = 1;

constructor(value) {
this.#value = value;
}

bind(f) {
const newThis = f(this.#value);

if (newThis.#size < this.#size + 1) newThis.#size = this.#size + 1;
console.log(`the glaceon is now ${newThis.#size} meters tall`);
return newThis;
}
};
Show thread

the monorail monad. every time you bind it logs that the shiny glaceon has gotten a little big larger

Show older
📟🐱 GlitchCat

A small, community‐oriented Mastodon‐compatible Fediverse (GlitchSoc) instance managed as a joint venture between the cat and KIBI families.