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

Implement a depth options #84

Open
inkstak opened this issue Oct 15, 2021 · 2 comments
Open

Implement a depth options #84

inkstak opened this issue Oct 15, 2021 · 2 comments
Labels
enhancement New feature or request

Comments

@inkstak
Copy link

inkstak commented Oct 15, 2021

(This feature was already requested in awesome_print)

It whould be nice to implement a depth options:

array = [[1,2], [3,4]]

ap(array)
# [
#    [0] [
#        [0] 1,
#        [1] 2
#    ],
#    [1] [
#        [0] 3,
#        [1] 4
#    ]
# ]

ap(array, depth: 1)
# [
#    [0] [1, 2],
#    [1] [3, 4]
# ]

I intended to make a pull request, but the code is pretty complex, I won't say no to be helped.

@gabrielcosta42
Copy link

I created a pull request that adds this feature: #86

@HarlemSquirrel HarlemSquirrel added the enhancement New feature or request label Nov 14, 2022
@HarlemSquirrel
Copy link
Member

@gabrielcosta42 have you had a chance to look over our suggestions in that pull request?

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

No branches or pull requests

3 participants