Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error in Transducers reference #341

Closed
seeeturtle opened this issue Dec 23, 2018 · 1 comment
Closed

Error in Transducers reference #341

seeeturtle opened this issue Dec 23, 2018 · 1 comment

Comments

@seeeturtle
Copy link

  1. In Creating Transducers, it explains
(fn [xf]
  (fn ([] ...)
      ([result] ...)
      ([result input] ...)))

as a function that produce transducers.

Most functions that produce transducers have the following shape (custom code in "…​"):

However, as we can see from clojure functions like map or cat, it is definitely a transducer itself, not a function that produce transducer.

  1. In Terminology, it says xf indicates transducer and transducer means function that transform reducing function into another one.

However, in above code, the function has xf instead of rf. I searched other functions but they used rf which indicates reducing function not xf that indicates transducer.

@seeeturtle
Copy link
Author

@puredanger, what about the latter one?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant