Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • Users
  • Search
Skins
  • Light
  • Brite
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
hyperPad

hyperPad Forum

  1. Home
  2. Help and Support
  3. Best way to erase something in an array

Best way to erase something in an array

Scheduled Pinned Locked Moved Help and Support
1 Posts 1 Posters 15 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • MrAeon1111M Away
    MrAeon1111M Away
    MrAeon1111
    wrote last edited by
    #1

    Hello.
    It’s my first time programming and it is really funny because it’s so difficult to do easy things. It’s just unbelievable. But I suppose it’s due to optimisation. I have no clue.

    I cannot find a way to get the index position of a value in the array. It’s weird because it’s so simple. The array index should have its value and we should be able to search either by value or by index position. But we can’t.

    With loop I couldn’t figure out how it works.

    So I made a new system by modifying the array 3 times.

    First modify array (prepend value)
    Second delete duplicates
    Third delete first value

    Like that, I can erase something from the array.

    Do you know a better way to do that? I mean a proper way to do that?

    alt text

    1 Reply Last reply
    0

    Hello! It looks like you're interested in this conversation, but you don't have an account yet.

    Getting fed up of having to scroll through the same posts each visit? When you register for an account, you'll always come back to exactly where you were before, and choose to be notified of new replies (either via email, or push notification). You'll also be able to save bookmarks and upvote posts to show your appreciation to other community members.

    With your input, this post could be even better 💗

    Register Login
    Reply
    • Reply as topic
    Log in to reply
    • Oldest to Newest
    • Newest to Oldest
    • Most Votes


    • Login

    • Login or register to search.
    • First post
      Last post
    0
    • Categories
    • Recent
    • Tags
    • Popular
    • Users
    • Search