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

New flag – infinite list generation (n-th element) #153

Merged
merged 2 commits into from
Sep 5, 2019

Conversation

Mr-Xcoder
Copy link
Collaborator

@Mr-Xcoder Mr-Xcoder commented Sep 5, 2019

Added the è flag to λ, which given n, retrieves the n-th element, 0-indexed (such that the behaviour matches that of e as a command).

We have discussed about adding this flag a while ago but I think the idea has been forgotten since.

To-do: add tests.

Added the `è` flag to `λ`, which given **n**, retrieves the **n**-th element, 0-indexed (such that the behaviour matches that of `e` as a command).
@codecov
Copy link

codecov bot commented Sep 5, 2019

Codecov Report

Merging #153 into master will increase coverage by <.01%.
The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #153      +/-   ##
==========================================
+ Coverage   95.92%   95.93%   +<.01%     
==========================================
  Files          23       23              
  Lines        1793     1794       +1     
==========================================
+ Hits         1720     1721       +1     
  Misses         73       73
Impacted Files Coverage Δ
lib/interp/commands/subprogram_interp.ex 98.43% <100%> (+0.01%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4fd06da...fac76d2. Read the comment docs.

Copy link
Owner

@Adriandmen Adriandmen left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM!

@Adriandmen Adriandmen merged commit 5ae9714 into master Sep 5, 2019
@Mr-Xcoder Mr-Xcoder deleted the new-flag-for-lambda branch September 8, 2019 09:43
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

Successfully merging this pull request may close these issues.

2 participants