Skip to content

Investigate where lst argument should go #13

Open
@codereport

Description

@codereport

I recently got this issue request:

which was to fix the argument order on adjacent-map to be consistent with Racket's builtin map. However, when playing around with Racket I noticed many other functions like take and drop have lst as the first argument. Opening this issue to determine what the best practice should be. At the end of the day, Racket has the threading module with thread-first, thread-last and the _ placeholder, but still want to know the motivation for differences in builtin Racket functions.

(require threading)

(define l '(1 2 3))

(~>> l
    (reverse _)
    (take _ 2)
    (drop _ 1))

Metadata

Metadata

Assignees

Labels

questionFurther information is requested

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions