Question Elliott Grey · May 15, 2023 ObjectScript code examples help Trying to gather basic code examples written in ObjectScript and realized it's probably easiest to ask the people who know what they're doing! I'm looking for examples of the following five prompts all in ObjectScript: Prompt 1. Write a function that partitions the array into two subarrays: one with all even integers, and the other with all odd integers. Return your result in the following format: [[evens], [odds]] Prompt 2. Create a function that computes the hamming distance between two strings #ObjectScript #Other 0 3 0 172
Question Elliott Grey · May 10, 2023 Sort array of version numbers in ObjectScript? I'm trying to write an ObjectScript function that sorts version numbers to help learn ObjectScript. This is all I can think of after staring at VS Code for a while, but I don't know where to go with it. Can someone please help out with a tip? The goal is to take something like ["1.4.5", "0.5.3", "6.3.2", "1.2.4"] and turn it into ["0.5.3", "1.2.4", "1.4.5", "6.3.2"] #ObjectScript #Other 0 4 0 222