Open CesMak opened 7 years ago
yes you are right, a better explanation is in order. However, really, in the meantime the best way is the following: 1) pick the most similar existing function to the one you want to implement (in terms of number of arguments, type of operation, etc.). 2) Do a "search all" for that keyword in the whole project. 3) Add analogous definitions in all the places where the existing one is defined.
Hey there I just want to ask how to write an own function?
What I did is: I wrote my own coffeescript: string2array.coffee: string2array = (hal)-> console.log hal console.log JSON.parse(hal) JSON.parse(hal)
In the runtime/defs.coffee: (I added:) string2array = counter++
In the runtime/init.coffee: (I added:) std_symbol("size", string2array)
In the runtime/zombocom.coffee (I added:) builtin_fns = ["string2array"]
Now I tried to build it (npm run build):
Getting the above error.
Any ideas how to solve this?
I would use the Algebrite libray and understand more of it. Would appreciate if sb could explain how to add new coffee scripts