-
Code USING: kernel sequences qw ; IN: foo : x ( -- ) qw{ n e w s } [ [ = ] curry count ] with map ; inline
Test Cases ! Use vocabulary tools.testest for testing. ! See https://github.com/codewars/testest USING: foo tools.testest ; IN: example.tests : run-tests ( -- ) "Example" describe#{ "test case" it#{ <{ { "s" } x -> { 0 0 0 1 } }> }# }# ; MAIN: run-tests
Output:
-
This comment has been reported as {{ abuseKindText }}.
Show
This comment has been hidden. You can view it now .
This comment can not be viewed.
- |
- Reply
- Edit
- View Solution
- Expand 1 Reply Expand {{ comments?.length }} replies
- Collapse
- Remove
- Remove comment & replies
- Report
{{ fetchSolutionsError }}
Please sign in or sign up to leave a comment.