{"size": 751, "ext": "scrbl", "max_stars_repo_path": "doc/data-struct.scrbl", "max_stars_repo_name": "ShuangyiTong/HuajiScript", "max_stars_repo_stars_event_min_datetime": "2020-11-30T03:24:46.000Z", "max_stars_repo_stars_event_max_datetime": "2020-11-30T03:24:46.000Z", "max_issues_repo_path": "doc/data-struct.scrbl", "max_issues_repo_name": "ShuangyiTong/HuajiScript", "max_issues_repo_issues_event_min_datetime": null, "max_issues_repo_issues_event_max_datetime": null, "max_forks_repo_path": "doc/data-struct.scrbl", "max_forks_repo_name": "ShuangyiTong/HuajiScript", "max_forks_repo_forks_event_min_datetime": null, "max_forks_repo_forks_event_max_datetime": null}
{"max_stars_count": 1, "max_issues_count": null, "max_forks_count": null, "avg_line_length": 24.2258064516, "max_line_length": 135, "alphanum_fraction": 0.6764314248}
#lang scribble/manual

@(define-syntax-rule (samplemod . text) (codeblock . text))

@(define-syntax-rule (cr . text) (racketfont . text))

@(define-syntax-rule (ci . text) (racketvarfont . text))

@title[#:tag "data-struct"]{Built-in Data Structures}

@local-table-of-contents[]

@section[#:tag "slice"]{slice@ci{     syntax sugar}}

@ci{slice} is designed to be a common method to multiple data structures. Huaji script provides a syntax sugar for @ci{slice} function.

@ci{name}@cr{[@ci{1st-expr}:@ci{2nd-expr} ...]}

@cr{=> (slice @ci{name 1st-expr 2nd-expr} ...)}

@italic{Example}:

@samplemod|{
    declare str="123456";

    str[0:-1] => 123456
}|

@include-section["string.scrbl"]
@include-section["list.scrbl"]
@include-section["array.scrbl"]