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


3 points by randallsquared 6140 days ago | link

    (def myfn ()
      ...)

-----

3 points by chaos 6140 days ago | link

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

    (fn () 'bar)

-----