// #1.5 var word = line.TrimStart().Split(null, 2)[0].ToLower();
( global miauuStr struct miauuTestStr ( defaultLayer = layerManager.getLayer 0, numMarks = 0, numMarksArr = #(0,1,2,3,4,5,6,7,8,9), visSta…
miauu: The struct is used in about 50 dialogs and some of its variables are used in other 2 structs. hmm… is it a library? why one structure use…
also this approach helps to “synch” both struct and rollout developments, because you define and update them together.
very unlikely you will use the same structure with multiple dialogs, so it’s better to put the rollout inside the structure. inside the rollout’s bod…
global miauuStr ( struct miauuTestStr ( defaultLayer = layerManager.getLayer 0, numMarks = 0, visState = false, dialog = ( rollout dia…
Dictionary is always a pair <key, value> … key is usually something simply ‘hashable’ (string, index, etc…) for quick search, but the value can …
miauu: (Array.IndexOf(words, word) > -1) is the c# equivalent of findItem. yes. it’s similar to findItem but has some extra options. Anyway…
public void ProcessString(string str , String[] words) { data = new Dictionary<string, int>(); var spaces = new char[]{‘ ‘,’ ‘}…
( cs_assembly = ( local source = @” using System; using System.IO; using System.Collections.Generic; public class TextProcessor { pu…
Haha … I specially modified the code to work with a file
here is C# version with dynamic assembly: ( cs_assembly = ( local source = @” using System; using System.IO; using System.Collections.Gener…
words = #( “alpha”, “beta”, “gama”, “delta”, “epsilon”, “zeta”, “eta”, “theta”, “iota”, “kappa”, “lambda”, “mu”, “nu”, “xi”, “omicron”, “pi”, “…
but it’s faster than your Python example!
miauu: denisT: it’s very fast… I don’t see the reason to get it faster It is the same as this one: Fast search through text file What I h…