Logo

Programming-Idioms

History of Idiom 97 > diff from v24 to v25

Edit summary for version 25 by namjae:
New Elixir implementation by user [namjae]

Version 24

2017-03-02, 20:24:32

Version 25

2017-03-04, 07:31:09

Idiom #97 Check string suffix

Set boolean b to true if string s ends with suffix suffix, false otherwise.

Illustration

Idiom #97 Check string suffix

Set boolean b to true if string s ends with suffix suffix, false otherwise.

Illustration
Code
String.ends_with?(s, suffix)