Guest User

Untitled

a guest
Jul 21st, 2018
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.62 KB | None | 0 0
  1. <mattmitchell> (doc reduce)
  2. <sexpbot> ⟹ "([f coll] [f val coll]); f should be a function of 2
  3. arguments. If val is not supplied, returns the result of applying f to
  4. the first 2 items in coll, then applying f to that result and the 3rd
  5. item, etc. If coll contains no items, f must accept no arguments as
  6. well, and reduce returns the result of calling f with no arguments. If
  7. coll has only 1 item, it is returned and f is not called. If val is
  8. supplied, returns the result of applying f to val and the first item
  9. in coll, then applying f to that result and the 2nd item, etc. If coll
  10. contains no items, returns val and f is not called."
Add Comment
Please, Sign In to add comment