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

Source X Native: Some functions are not available #1429

Closed
martin-henz opened this issue Jun 23, 2023 · 2 comments · Fixed by #1431
Closed

Source X Native: Some functions are not available #1429

martin-henz opened this issue Jun 23, 2023 · 2 comments · Fixed by #1431
Assignees
Labels
Bug Something isn't working important Fixing this is important, but not mission-critical

Comments

@martin-henz
Copy link
Member

Screen Shot 2023-06-23 at 7 12 51 PM

where X is 2-4. (Source 1 Native shouldn't have reverse)

@martin-henz martin-henz added Bug Something isn't working important Fixing this is important, but not mission-critical labels Jun 23, 2023
@RichDom2185 RichDom2185 changed the title Source X Native: Function reverse not available Source X Native: Some functions are not available Jun 24, 2023
@RichDom2185
Copy link
Member

RichDom2185 commented Jun 24, 2023

Not just reverse, but the following lists all functions that are not available in Source 2 Native:

  • __access_export__
  • __access_named_export__
  • accumulate
  • append
  • build_list
  • enum_list
  • equal
  • filter
  • for_each
  • length
  • list_ref
  • list_to_string
  • map
  • member
  • remove
  • remove_all
  • reverse

All remaining functions as defined in https://docs.sourceacademy.org/source_2/ are available.

@RichDom2185
Copy link
Member

RichDom2185 commented Jun 24, 2023

The following tested using Source 4 Native (specs):

Available Unavailable
  • apply_in_underlying_javascript
  • arity
  • array_length
  • char_at
  • display
  • display_list
  • draw_data
  • error
  • get_time
  • head
  • Infinity
  • is_array
  • is_boolean
  • is_function
  • is_list
  • is_null
  • is_number
  • is_pair
  • is_string
  • is_undefined
  • list
  • math_abs
  • math_acos
  • math_acosh
  • math_asin
  • math_asinh
  • math_atan
  • math_atan2
  • math_atanh
  • math_cbrt
  • math_ceil
  • math_clz32
  • math_cos
  • math_cosh
  • math_E
  • math_exp
  • math_expm1
  • math_floor
  • math_fround
  • math_hypot
  • math_imul
  • math_LN2
  • math_LN10
  • math_log
  • math_log1p
  • math_log2
  • math_LOG2E
  • math_log10
  • math_LOG10E
  • math_max
  • math_min
  • math_PI
  • math_pow
  • math_random
  • math_round
  • math_sign
  • math_sin
  • math_sinh
  • math_sqrt
  • math_SQRT1_2
  • math_SQRT2
  • math_tan
  • math_tanh
  • math_trunc
  • NaN
  • pair
  • parse
  • parse_int
  • prompt
  • set_head
  • set_tail
  • stream
  • stream_tail
  • stringify
  • tail
  • tokenize
  • undefined
  • __access_export__
  • __access_named_export__
  • accumulate
  • append
  • build_list
  • build_stream
  • enum_list
  • enum_stream
  • equal
  • eval_stream
  • filter
  • for_each
  • integers_from
  • is_stream
  • length
  • list_ref
  • list_to_stream
  • list_to_string
  • map
  • member
  • remove
  • remove_all
  • reverse
  • stream_append
  • stream_filter
  • stream_for_each
  • stream_length
  • stream_map
  • stream_member
  • stream_ref
  • stream_remove
  • stream_remove_all
  • stream_reverse
  • stream_to_list

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something isn't working important Fixing this is important, but not mission-critical
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants