Arc Forumnew | comments | leaders | submitlogin
How to define f with 0 args?
2 points by mayson 6170 days ago | 2 comments
How does one define a function with 0 args?


3 points by randallsquared 6170 days ago | link

    (def myfn ()
      ...)

-----

3 points by chaos 6170 days ago | link

    (def foo () 'bar)
    (foo)
or

    (fn () 'bar)

-----