How to resolve the algorithm Strip a set of characters from a string step by step in the Amazing Hopper programming language

Published on 12 May 2024 09:40 PM

How to resolve the algorithm Strip a set of characters from a string step by step in the Amazing Hopper programming language

Table of Contents

Problem Statement

Create a function that strips a set of characters from a string.

The function should take two arguments:

The returned string should contain the first string, stripped of any characters in the second argument:

Let's start with the solution:

Step by Step solution about How to resolve the algorithm Strip a set of characters from a string step by step in the Amazing Hopper programming language

Source code in the amazing programming language

#include 

Main
    c = ".$%#\tEste@@@ mensaje será purgado!$$$"

    {"Hopper assembler:\n\n"}
    {"$%#@.\t", c} str to utf8, delete char, {"\n"} print
    
    Printnl ("\nHopper Jambo formal syntax:\n\n", Char del ( "$%#@.\t", Utf8( c ) ) )
    
    Set ' "\nHopper Jambo Natural syntax:\n\n", "$%#@.\t", c', Get utf8, and delete char 
    then print with newline
End

  

You may also check:How to resolve the algorithm Word wrap step by step in the Elena programming language
You may also check:How to resolve the algorithm Sorting algorithms/Strand sort step by step in the Ruby programming language
You may also check:How to resolve the algorithm Descending primes step by step in the Go programming language
You may also check:How to resolve the algorithm Home primes step by step in the Transd programming language
You may also check:How to resolve the algorithm Magnanimous numbers step by step in the ALGOL W programming language