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


3 points by randallsquared 6118 days ago | link

    (def myfn ()
      ...)

-----

3 points by chaos 6118 days ago | link

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

    (fn () 'bar)

-----