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 8244313
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 7, 20262026-06-07T21:48:36+00:00 2026-06-07T21:48:36+00:00

I add the last function and importance function – bSearch() and link it with

  • 0

I add the last function and importance function – bSearch() and link it with combining() as following

       combining::[BookInfo]->[[Int]]

       combining books=superBubble [(map index books)] 
        bSearch [xs] key s
                  if length[xs] <> s then return 9999
                  else
                  if
                    key=m then elemIndex m [xs]
                  else
                    if key<m then bsearch (splitAt (x:xs) o) key o 
                   else bsearch (splitAt ms (o+2) ) key n  
                  o<-s/2-1
                  n<-length ms
        finalBsearch::(Ord)=> [a]->a->a->Int
        finalBsearch ms key s= bsearch  (combining [ms]) key s  

but it give me an error Syntax error in input (unexpected keyword "if") at line 5
thank u for help
= for more details about the full code see runtime error in Haskell

But please give me instructions only not full solution

  • 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-07T21:48:37+00:00Added an answer on June 7, 2026 at 9:48 pm

    For a quick fix, enclose the whole if–then–else expression in parentheses: (–). But this will fix only this error message. Your code contains many more errors. I can’t tell what you expect this code to do.

    Instead of using cascading if–then–elses, you may find it clearer to use guards.

    n.b. You do not have an exception; you have a compilation error.

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

Sidebar

Related Questions

This is my js code: <script> function add(){ $('#myTable tr:last').after('<tr><td>4<span onclick=del()>del row</span></td></tr>'); } function
function count(){ //user input stored in the last index of the array each cycle
consider this scenario for validating: function validateForm (validCallback) { $('#first-name').add($('#last-name')).add($('#address')).each(function () { // validating
I want append link add in last child of class:( ('.' + change_class +
I have the following function to get the last access date of googlebot: //get
Further to my last question I need to add in the .live() function as
I want clear content by change event and save last cursor position ed.onChange.add(function(ed, o)
Is there an ISAPI filter that can automatically add the Last-Modified header in IIS?
I can add and remove the last line in my dynamic form and calculate
How do I add class=x to the last table cell that's on the same

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.