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

  • Home
  • SEARCH
  • 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 601021
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 13, 20262026-05-13T16:40:11+00:00 2026-05-13T16:40:11+00:00

I was wondering if there is a nice pattern or better yet a specific

  • 0

I was wondering if there is a nice pattern or better yet a specific function which applies a function until there is no longer a change in it’s result.

url = "http://www.zzz.com/yyy/lt%255B1%255D.jpg"
unescaped = unescape(url)
while unescaped != url do
  url = unescaped
  unescaped = unescape(unescaped)
end

Although the code above is basically ruby it is readable enough as psudocode I think. The first setting of unescaped is to http://www.zzz.com/yyy/lt%5B1%5D.jpg, the loop is then invoked as there has been a change and as such unescaped becomes http://www.zzz.com/yyy/lt%5B1%5D.jpg, the loop is called again as there has yet again been a change but this time there us nothing to unescape and so url and unescaped become the same breaking the while loop.

There is nothing wrong with this code per-say I mealy wonder if there is a more sussinct way of representing it, either in psudocode form or, for my specific case, in ruby.

Much appreciate the help as always!

  • 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-05-13T16:40:11+00:00Added an answer on May 13, 2026 at 4:40 pm

    You could write it as a recursive function that recurses until input and output match.

    operate_while_change (input) {
    
      output <= change(input)
    
      output <= operate_while_change(output) if output != input
    
      return output
    
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 307k
  • Answers 307k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer long 64 –9,223,372,036,854,775,808 to 9 ,223,372,036,854,775,807 int 32 –2,147,483,648 to… May 13, 2026 at 9:31 pm
  • Editorial Team
    Editorial Team added an answer Application state is stored in memory. Every time the application… May 13, 2026 at 9:31 pm
  • Editorial Team
    Editorial Team added an answer In Windows command shells, the command you execute is responsible… May 13, 2026 at 9:31 pm

Related Questions

I'm not sure if this is a strange thing to do or not, or
I'm playing around with .NET's configuration support (the ConfigurationManager class and related support classes).
We are working with large amounts of data, all tagged in UTC (in Java).
I need to store some data that follows the simple pattern of mapping an
I am aware of a counter approach to do this. I was wondering if

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.