Skip to content

Could the various Psl\Type functions be considered "pure"? #443

Answered by veewee
gsteel asked this question in Q&A
Discussion options

You must be logged in to vote

It is not possible for all types to be marked as pure.
Once iterables are iterated, there might be side-effects (e.g. inside generators)

See:

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@gsteel
Comment options

Answer selected by gsteel
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants