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


3 points by randallsquared 5936 days ago | link

    (def myfn ()
      ...)

-----

3 points by chaos 5936 days ago | link

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

    (fn () 'bar)

-----