Lemmy.eus
  • Communities
  • Create Post
  • Create Community
  • heart
    Support Lemmy
  • search
    Search
  • Login
  • Sign Up
Cipherd@lemmy.ml to Programmer Humor@programming.dev · 2 days ago

functions

lemmy.ml

external-link
message-square
117
fedilink
625
external-link

functions

lemmy.ml

Cipherd@lemmy.ml to Programmer Humor@programming.dev · 2 days ago
message-square
117
fedilink

cross-posted from: https://lemmy.ml/post/39334581

  • save_the_humans@leminal.space
    link
    fedilink
    English
    arrow-up
    21
    arrow-down
    2
    ·
    2 days ago

    Anyone tried lisp? Looks something like this. ((()))()())))

    • SlurpingPus@lemmy.world
      link
      fedilink
      arrow-up
      17
      ·
      1 day ago

      Remarkable how if the parenthesis is shifted from lambda() to (lambda), people lose the ability to comprehend things.

      • Jankatarch@lemmy.world
        link
        fedilink
        arrow-up
        2
        ·
        edit-2
        1 day ago

        Isn’t it more like
        foo(){…} -> (define foo (lambda ()))
        tbf?

        • stammi@feddit.org
          link
          fedilink
          arrow-up
          2
          ·
          1 day ago

          In clojure it’s (def (fn [])) or short (defn []).

        • SlurpingPus@lemmy.world
          link
          fedilink
          arrow-up
          2
          ·
          edit-2
          1 day ago

          In Emacs Lisp, you use one of these two:

          (defun funcname (arg1 arg2) (+ arg1 arg2))

          (lambda (arg1 arg2) (+ arg1 arg2))

          — with the latter typically being an argument to another function or macro.

      • Jankatarch@lemmy.world
        link
        fedilink
        arrow-up
        1
        ·
        edit-2
        1 day ago

        deleted by creator

Programmer Humor@programming.dev

programmer_humor@programming.dev

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: !programmer_humor@programming.dev

Welcome to Programmer Humor!

This is a place where you can post jokes, memes, humor, etc. related to programming!

For sharing awful code theres also Programming Horror.

Rules

  • Keep content in english
  • No advertisements
  • Posts must be related to programming or programmer topics
Visibility: Public
globe

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

  • 2.27K users / day
  • 5.44K users / week
  • 9.03K users / month
  • 17.4K users / 6 months
  • 3 local subscribers
  • 27.5K subscribers
  • 1.73K Posts
  • 40.2K Comments
  • Modlog
  • mods:
  • Feyter@programming.dev
  • adr1an@programming.dev
  • BurningTurtle@programming.dev
  • Pierre-Yves Lapersonne@programming.dev
  • BE: 0.19.7
  • Modlog
  • Instances
  • Docs
  • Code
  • join-lemmy.org