Skip to content

Infinite list gives syntax error #5

@tejasbubane

Description

@tejasbubane
PSCi, version 0.13.6
Type :? for help

> double = [x*2 | x <- [1,2,3]]
> squares = [x * x | x <- [1..]]
Unexpected token '=' at line 1, column 9
> a = [1..]
Unexpected token '=' at line 1, column 3

Normal list double works. But squares with infinite list does not.

Not sure if this is an issue with the docs or the runtime itself.

Metadata

Metadata

Assignees

Labels

documentationImprovements or additions to documentation

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions