You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The applicative instance for lists does not behave the way it should.
Compare the following Racket program
with the Haskell program following it
to observe the crucial difference.
#lang algebraic/racket/base
(require algebraic/control/applicative)
(require algebraic/data/list)
(with-instance list-applicative
(<*> (list add1 sub1) (list4213)))
; '(43 12)
(with-instance list-applicative
(<*> (list add1 sub1) (list42137)))
; map: all lists must have same size
The applicative instance for lists does not behave the way it should.
Compare the following Racket program
with the Haskell program following it
to observe the crucial difference.
The text was updated successfully, but these errors were encountered: