Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

support data structure functions #10

Open
3 tasks
fiji-flo opened this issue Nov 19, 2017 · 0 comments
Open
3 tasks

support data structure functions #10

fiji-flo opened this issue Nov 19, 2017 · 0 comments

Comments

@fiji-flo
Copy link
Owner

  • tuple: Takes an arbitrary list of items and returns a slice of items. Its
    tuple-ish properties are mainly gained through the template idiom, and not
    through an API provided here. WARNING: The implementation of tuple will
    change in the future.
  • list: An arbitrary ordered list of items. (This is prefered over tuple.)
  • dict: Takes a list of name/values and returns a map[string]interface{}.
    The first parameter is converted to a string and stored as a key, the
    second parameter is treated as the value. And so on, with odds as keys and
    evens as values. If the function call ends with an odd, the last key will
    be assigned the empty string. Non-string keys are converted to strings as
    follows: []byte are converted, fmt.Stringers will have String() called.
    errors will have Error() called. All others will be passed through
    fmt.Sprtinf("%v").
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant