Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (Darkly)
  • No Skin
Collapse
Brand Logo
lumiL

lumi@heckin.how

@lumi@heckin.how
About
Posts
5
Topics
3
Shares
0
Groups
0
Followers
0
Following
0

View Original

Posts

Recent Best Controversial

  • Seems like Janeway's Immunobiology is considered the best literature for studying the Immune System.
    lumiL lumi

    Seems like Janeway's Immunobiology is considered the best literature for studying the Immune System.

    Uncategorized

  • the joke of "cool feature, can't wait to be able to use it in 5 years" is now baseline widely available
    lumiL lumi

    @rebane2001 C++ core

    Uncategorized

  • No one actually needs #socialmedia, just #hallucinate all of your important #convos, the #Void knows best.
    lumiL lumi

    No one actually needs #socialmedia, just #hallucinate all of your important #convos, the #Void knows best.

    Uncategorized socialmedia hallucinate convos void

  • Does anyone want to have a hellthread it’s been a while
    lumiL lumi

    @woof what's a hell thread ?

    Uncategorized

  • Got an exam Wednesday that lumi should study for since it failed that class.
    lumiL lumi

    Got an exam Wednesday that lumi should study for since it failed that class. Instead, been learning Koka

    // +, 0, - -> 1, 0, -1
    
    fun unfoldr(f : b -> maybe2, init : b) : div list
      match f(init)
        Just2(a, b) -> Cons(a, unfoldr(f, b))
        Nothing2 -> Nil
    
    fun map-if(xs : list, f : a -> a, b : bool) : list
      if b
      then xs.map(f)
      else xs
    
    fun neg-trit(trit : char) : char
      match trit
        '+' -> '-'
        '-' -> '+'
        e -> e
    
    fun bal-tri(x : int) : div list
      unfoldr(fn(n)
        if n != 0
        then match n % 3
          0 -> Just2('0', n / 3)
          1 -> Just2('+', n / 3)
          _ -> Just2('-', n / 3 + 1)
        else Nothing2
      , x.abs).map-if(neg-trit, x.is-neg()).reverse()
    -9.bal-tri().string()
    -00
    25.bal-tri().string()
    +0-+

    Uncategorized
  • Login

  • Don't have an account? Register

  • Login or register to search.
Powered by NodeBB Contributors
  • First post
    Last post
0
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups