Beta

Functional JSON

Description
Loading description...
Algorithms
Esoteric Languages
Interpreters
Functional Programming
  • Please sign in or sign up to leave a comment.
  • Voile Avatar

    Random tests are of a fixed pattern, so they can be easily passed: see this

  • Voile Avatar

    str.len: Returns the length of string str.

    str.at: Returns the offsetth element of string str.

    The actual argument name is s, not str.

  • _0M3G4_ Avatar

    how we can get the input in javascript

  • Greatlemer Avatar

    I assume that the ~ operator only needs "in1" since it's a unary operator, is that correct?

  • Greatlemer Avatar

    Checks cond and returns =then when true, =else otherwise.

    I think you have a typo here, the then and else shouldn't have an = at the start should they?

  • Greatlemer Avatar

    For the respective string and array operations, does the associated variable have to be called str or arr?

  • Greatlemer Avatar

    The example from the description (5 factorial) should be in the example tests so you have an example of the builtins in action.

  • Greatlemer Avatar

    Can I suggest you summarise somewhere in the description (preferably at the top as it's a long read) what will be required? Are we building something that parses a JSON document? Are we implementing all of the built-ins, a subset of them, or none of them? How are you expecting errors to be raised?

  • FArekkusu Avatar

    the last expression is the result of the program

    Order of the keys in the object is not guaranteed.

  • FArekkusu Avatar

    No random tests.

  • user7531853 Avatar

    This is my first kata ever!

    Feedback/suggestions is highly appreciated!

    I hope you'll find this kata interesting!