Prelude functions should be conventionally "data first" #80

Closed
opened 2025-07-06 06:04:34 +00:00 by scott · 1 comment
Owner

I need to have a convention; it might as well be "data first," even though we don't have currying.

So at (xs, idx), contains? (xs, val), slice (xs, idx), etc.

I need to have a convention; it might as well be "data first," even though we don't have currying. So `at (xs, idx)`, `contains? (xs, val)`, `slice (xs, idx)`, etc.
scott added the
feature
design
labels 2025-07-06 06:04:34 +00:00
scott added this to the Core: CC2 milestone 2025-07-06 06:04:38 +00:00
Author
Owner

Done, as of a few commits ago.

The exception to this are the three (well, four) functional iteration functions, fold, foldr, map, and filter, which are function-first. Which makes a certain amount of sense. Not going to change them now.

Done, as of a few commits ago. The exception to this are the three (well, four) functional iteration functions, `fold`, `foldr`, `map`, and `filter`, which are function-first. Which makes a certain amount of sense. Not going to change them now.
scott closed this issue 2025-07-06 20:59:27 +00:00
Sign in to join this conversation.
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
The due date is invalid or out of range. Please use the format 'yyyy-mm-dd'.

No due date set.

Dependencies

No dependencies set.

Reference: twc/ludus#80
No description provided.