memoize + defonce : macro and line numbers in ClojureScript

2015-10-06 Thread Eivind Magnus Hvidevold
ter use of the macro, then the line numbers for the exception is wrong. I am using figwheel with source maps. Can anyone help me understand how to write a line number preserving macro? -- Eivind Magnus Hvidevold Cell: +47 92 678 423 -- You received this message because you are subscribed to

Re: Announcement: secrets of monad fu, revealed

2010-09-06 Thread Eivind Magnus Hvidevold
I liked it. Easy to grok. I had some vague idea that monads are like "overloading the pipe operator in a function pipeline", but now it's much clearer. I know some abstract algebra, though not category theory. I skipped the proofs, didn't care about those. -- Eivind Magnus

Re: finding value nearest x

2010-09-25 Thread Eivind Magnus Hvidevold
to sort and do binary search. -- Eivind Magnus Hvidevold Cell: +47 926 78 423 On Sat, Sep 25, 2010 at 3:41 PM, Glen Rubin wrote: > I have a list of numbers and I want to find the one that is closest to > 136. Is there an operator for performing this kind of operation or do > I need to

Re: Macro Implementation: I Don't Understand This Error Message

2010-10-03 Thread Eivind Magnus Hvidevold
to ignore them if you don't know what they really do." -- Eivind Magnus Hvidevold Cell: +47 926 78 423 On Sat, Oct 2, 2010 at 8:41 AM, Stefan Rohlfing wrote: > @Jürgen and Chris > > Thank you very much for helping me enlarge my understanding of macros! > > I realize