okr765
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
LadyButterfly she/her@piefed.blahaj.zone to Science Memes@mander.xyzEnglish · 2 months ago

I dunno

lock

piefed.cdn.blahaj.zone

message-square
763
fedilink
730

I dunno

lock

piefed.cdn.blahaj.zone

LadyButterfly she/her@piefed.blahaj.zone to Science Memes@mander.xyzEnglish · 2 months ago
message-square
763
fedilink
  • vala@lemmy.dbzer0.com
    link
    fedilink
    English
    arrow-up
    8
    ·
    2 months ago

    This is called “prefix notation”. The operator comes before the operands and every expression goes in parentheses.

    For instance you could write:

    (+ 1 2 3 4)
    

    Which would evaluate to 10.

    This syntax is from a family of programming languages usually called LISP.

    https://en.wikipedia.org/wiki/Lisp_(programming_language)

    • Reginald_T_Biter@lemmy.world
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      Awesome thanks for explaining that. That’s cool as hell.

    • call_me_xale@lemmy.zip
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      I understand prefix notation, but you got the order of operations wrong…

      • vala@lemmy.dbzer0.com
        link
        fedilink
        English
        arrow-up
        6
        ·
        2 months ago

        Yeah I’m stupid

        • call_me_xale@lemmy.zip
          link
          fedilink
          English
          arrow-up
          4
          ·
          2 months ago

          Knowing is half the battle!

    • merc@sh.itjust.works
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      Also, you can use this for more than just arithmetic. The first thing in the list is the name of the function, and everything else is something that you pass to the function. So you could instead write

      (plus 1 2 3 4)
      

      Which would be like plus(1, 2, 3, 4) in other kinds of programming languages.

Science Memes@mander.xyz

science_memes@mander.xyz

Subscribe from Remote Instance

Create a post
You are not logged in. However you can subscribe from another Fediverse account, for example Lemmy or Mastodon. To do this, paste the following into the search field of your instance: !science_memes@mander.xyz

Welcome to c/science_memes @ Mander.xyz!

A place for majestic STEMLORD peacocking, as well as memes about the realities of working in a lab.



Rules

  1. Don’t throw mud. Behave like an intellectual and remember the human.
  2. Keep it rooted (on topic).
  3. No spam.
  4. Infographics welcome, get schooled.

This is a science community. We use the Dawkins definition of meme.



Research Committee

  • !spiders@lemmy.world

Other Mander Communities

Science and Research

  • !academia@mander.xyz
  • !science@mander.xyz
  • !scicomm@mander.xyz

Biology and Life Sciences

  • !abiogenesis@mander.xyz
  • !animal-behavior@mander.xyz
  • !anthropology@mander.xyz
  • !arachnology@mander.xyz
  • !balconygardening@slrpnk.net
  • !biodiversity@mander.xyz
  • !biology@mander.xyz
  • !biophysics@mander.xyz
  • !botany@mander.xyz
  • !ecology@mander.xyz
  • !entomology@mander.xyz
  • !fermentation@mander.xyz
  • !herpetology@mander.xyz
  • !houseplants@mander.xyz
  • !medicine@mander.xyz
  • !microscopy@mander.xyz
  • !mycology@mander.xyz
  • !nudibranchs@mander.xyz
  • !nutrition@mander.xyz
  • !palaeoecology@mander.xyz
  • !palaeontology@mander.xyz
  • !photosynthesis@mander.xyz
  • !plantid@mander.xyz
  • !plants@mander.xyz
  • !reptiles and amphibians@mander.xyz

Physical Sciences

  • !astronomy@mander.xyz
  • !chemistry@mander.xyz
  • !earthscience@mander.xyz
  • !geography@mander.xyz
  • !geospatial@mander.xyz
  • !nuclear@mander.xyz
  • !physics@mander.xyz
  • !quantum-computing@mander.xyz
  • !spectroscopy@mander.xyz

Humanities and Social Sciences

  • !archaeology@mander.xyz
  • !folklore@mander.xyz
  • !history@mander.xyz
  • !old_maps@mander.xyz

Practical and Applied Sciences

  • !exercise-and sports-science@mander.xyz
  • !gardening@mander.xyz
  • !self sufficiency@mander.xyz
  • !soilscience@slrpnk.net
  • !terrariums@mander.xyz
  • !timelapse@mander.xyz

Memes

  • !bushrat_confidential@slrpnk.net
  • !science_memes@mander.xyz

Miscellaneous

  • !answered@mander.xyz
  • !mander@mander.xyz
Visibility: Public
globe

This community can be federated to other instances and be posted/commented in by their users.

  • 1.18K users / day
  • 5.42K users / week
  • 10.1K users / month
  • 20.5K users / 6 months
  • 1 local subscriber
  • 18.1K subscribers
  • 6.37K Posts
  • 153K Comments
  • Modlog
  • mods:
  • Salamander@mander.xyz
  • fossilesque@mander.xyz
  • SciBot@mander.xyz
  • fossilesque@lemmy.dbzer0.com
  • BE: 0.19.9
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org