RSSAmplifier

soc.me · Jun 7, 2022

Library Design: Naming Conventions – Part 4: Lookup

0
Sign in to vote or save

This page cannot be shown here. You can still read it on the original site — the toolbar below keeps your place in the directory.

Function Name Code Example Explanation – List(12.3, 45.6)(0) --> Some(12.3) Map("key", "val")("key") --> Some("val") retrieves the value at the given index/key at(idx) Array(12.3, 45.6).at(1) --> Some(Ref(arr, 1)) returns a reference to the given position in the array contains(val) List(1.0, -0.0, NaN).contains(0.0) --> true List(1.0, -0.0, NaN).contains(NaN) --> true Map("key",…

Read on /languages/naming-conventions-lookup.html

Comments

Nothing yet. Say the first thing.

    Sign in to join the conversation.