themetaschemer/malt

Malt is missing `zeros`

jmikkola opened this issue · 2 comments

Right now, a fresh import of malt seems to be missing the zeros function:

20:53 ~/% raco pkg update malt
Resolving "malt" via https://download.racket-lang.org/releases/8.6/catalog/
Resolving "malt" via https://pkgs.racket-lang.org
No updates available
20:53 ~/% racket
Welcome to Racket v8.6 [cs].
> (require malt)
> (zeros (tensor 1 2))
zeros: undefined;
 cannot reference an identifier before its definition
  in module: top-level
 [,bt for context]
> 

In the meantime, I defined my own:

(define zeros
  (lambda (x)
    (* 0 x)))

We spell zeroes with an additional e, which is probably why this might be a problem. Apologies for the confusion.

I see, thanks!