Skip to content

The "count" function does not behave as SRFI-1 specified. #155

Description

@GoogleCodeExporter
None of the three examples of the "count" function in SRFI-1 works in Ypsilon 
0.9.6-update3 (from 
http://old-releases.ubuntu.com/ubuntu/pool/universe/y/ypsilon/ypsilon_0.9.6.upda
te3-7ubuntu1_amd64.deb).

> (import (srfi :1))
> (count even? '(3 1 4 1 5 9 2 5 6))

error in apply: expected proper list for last argument, but got 3

backtrace:
  0  (count even? '(3 1 4 1 5 9 2 5 6))
  ..."/dev/stdin" line 1

> (count < '(1 2 4 8) '(2 4 6 8 10 12 14 16))

error: #<closure 0x6aad82e0> expected 2, but 3 arguments given

irritants:
  (1 2 0)

backtrace:
  0  (count < '(1 2 4 8) '(2 4 6 8 10 12 14 16))
  ..."/dev/stdin" line 1

Original issue reported on code.google.com by noctuor...@gmail.com on 2 Mar 2013 at 2:33

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions