Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8895097
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T23:41:00+00:00 2026-06-14T23:41:00+00:00

It is clear. I had following error. How can I remove it. I need

  • 0

It is clear. I had following error.
How can I remove it. I need to process all of the list.

uncaught exception Subscript [subscript out of bounds]
 raised at: Basis/Implementation/list.sml:...

It’s in SML/NJ and I am working with lists.

Thank You.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T23:41:01+00:00Added an answer on June 14, 2026 at 11:41 pm

    The error means you’re trying to access an element with an index that isn’t in the list.

    For instance:

    - List.nth([0,1,2], 7);
    
    uncaught exception Subscript [subscript out of bounds]
      raised at: Basis/Implementation/list.sml:47.35-47.44
    

    You solve this problem by not trying to access nonexistent elements. You should generally be careful with dealing with functions like List.nth, List.take, List.drop, …, as they’re partial functions, which only work for certain inputs.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I had a requirement where I need to clear off the select all checkbox
When I run my Kynetx app I am getting the following error: Can't use
I've had trouble finding a clear, concise laymans definition of a class. Usually, they
I have received the following error message when trying to debug an application in
I had ever used the following code snippet in one class. Today, I copied
I am working remotely and had to restart. I can start a vnc session
I had multiple spiders in my project folder and want to run all the
I have a 2D vector which contains objects. std::vector<std::vector<List> > ListPos; ListPos.clear(); std::vector<List> initPV;
I had a clean working directory and brought in a clone from a Git
I had a weird issue arise after using CodeMaid to clean up my code.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.