Show newer

so: would you smoke the blender default cylinder JUUL?

Show thread

be careful, it does unthinkable things to your mind and B O D Y

Show thread

re: i made it worse? re: catflame status 

@vaporeon_ if it's eeveening yet fur ny’all then feel free to take a look at the code if you still want to try to purrocess it

re: i made it worse? re: catflame status 

@vaporeon_ this is hard to expurress succinctly.

(C t) => ... means that in the type expurression ..., the type t is known to be a member of the typeclass C

an example of a typeclass is Eq, fur types that have total equality checks:

class Eq a where
(==) :: a -> a -> Bool
(/=) :: a -> a -> Bool

so, fur example, the following (extremely trivial) function, we contrain the polymorphism of f to parameterize only on types which are known instances of Eq, making it legal to polymorphically invoke the equality check on the generic parameter a:

f :: Eq t => t -> Bool
f a = a == a

re: context, code re: catflame status 

@vaporeon_ i WROTE this code and i am struggling to purrocess it

i made it worse? re: catflame status 

filtering ::
(Applicative k) =>
(a -> k Bool) ->
List a ->
k (List a)
filtering p = foldRight g $ pure Nil
where
-- what the fuck even is this
g a as = f a <$> p a <*> as

f :: a -> Bool -> List a -> List a
f _ False as = as
f a True as = a :. as

structural recursion my beloved. still don't understand this though

Show thread
Show older
📟🐱 GlitchCat

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