LadyButterfly she/her@piefed.blahaj.zone to Science Memes@mander.xyzEnglish · 18 hours agoI dunnopiefed.cdn.blahaj.zoneimagemessage-square250fedilinkarrow-up1580arrow-down151
arrow-up1529arrow-down1imageI dunnopiefed.cdn.blahaj.zoneLadyButterfly she/her@piefed.blahaj.zone to Science Memes@mander.xyzEnglish · 18 hours agomessage-square250fedilink
minus-squarevala@lemmy.dbzer0.comlinkfedilinkEnglisharrow-up3·2 hours agoThis 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)
minus-squareReginald_T_Biter@lemmy.worldlinkfedilinkEnglisharrow-up1·2 hours agoAwesome thanks for explaining that. That’s cool as hell.
minus-squarecall_me_xale@lemmy.ziplinkfedilinkEnglisharrow-up1·2 hours agoI understand prefix notation, but you got the order of operations wrong…
This is called “prefix notation”. The operator comes before the operands and every expression goes in parentheses.
For instance you could write:
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)
Awesome thanks for explaining that. That’s cool as hell.
I understand prefix notation, but you got the order of operations wrong…
Yeah I’m stupid
Knowing is half the battle!